jsup 2.1 - "저녁이 있는 스팀" 실험

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/jsup-2-1 휴일도 주말도 없이 매일 포스팅하느라 남의 글 읽을 여유도 없고, 뭘 써야 하나 쥐어짜면서 재미도 없어지고 이런 상황이 반복되면서 스팀 커뮤니티도 퇴색하고 포스트 품질도 하향평준화되고 있는 것은 아닐까, 그런 생각을 예전부터 했습니다. 임대 셀프보팅이 언뜻 보기에는 수익률이 높은 것 같지만, 어쩌면 스팀의 재미를 심각하게 반감시키고 신규 사용자/투자자 유입을 저하시키면서 스팀 시세 자체를 추락시키는 심각한 요인이 되고 있는지도 모릅니다. 이 문제에 대한 대응 차원에서 투자와 소셜 플랫폼 기능을 분리하는 실험을 해 보려고 합니다. 1일1포스팅의 의무감에서 벗어나 좀 더 여유 있고 편안한 스팀 생활을 위한 jsup 2.1 - "저녁이 있는 스팀" 실험입니다. 스팀에 투자는 했지만 현생에 바쁘거나, 또는 글쓰기에 취미가 없는데 휴일/공휴일도 없는 1일1포스팅 때문에 스팀이 즐거움이 아니라 부담이 되어버린 경우에 한번 고려해 볼 만하다고 생각됩니다. 또한, 글쓰기에 전혀 취미가 없는 사람에게도 투자 관점에서 스팀 매수/파워업을 추천할 수 있는 여건이 될 수도 있지 않을까, 그런 생각도 듭니다. 오로지 보팅 때문에 어쩔 수 없이 매일 작성하는, 아무도 읽지 않는 한줄짜리 포스팅은 이제 과거의 추억으로 보내고, 부담 없는 편안한 마음으로 스팀에 투자하고 정말 기록하고 싶은 내용이 있을 때 정성 들여 포스팅하는 그런 스팀 생활이 가능해야 합니다. 그래서 내가 쓴 포스트를 다른 사람들이 와서 기꺼이 읽고, 나도 다른 사람들이 쓴 포스트를 궁금해 하는, 그런 스팀 생활이 가능해야 합니다. 친구들과 술 한잔을 해도, 여행을 가도, 출장을 가도, 명절에 가족들과 윷놀이를 하고 이야기꽃을 피우면서도, 마치 12시 종이 치기 전에 집으로 돌아가야 하는 신데렐라처럼 마음 한구석에서 포스팅 걱정을 해야...

Making a table format on Discord

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/making-a-table-format-on-discord


discord.jpg

Hello, this is @joviansummer. My code revision of the automated missed-block reporter for witness Discord channel continues. After implementing mentioning(pinging) capability, I'm trying to convert reporting format to tabular form. It was requested by witness @steemchiller).

On Steemit, creating a table is easy thanks to markdown table support. On Discord, unfortunately, table is not supported. Discord only supports a limited subset of markdown and table is not available.

Thus, it seems the only way to make something similar is to use code block. In code block, text alignment possible because every character occupies the same width. You can see the difference from the screenshot below:

d01.jpg

Now, I need to make sure each field occupies pre-determined length. Thankfully, python provides a really useful capability called f-string. Here is an example.

name = '@joviansummer'
message = f"Hello, {name}!"
print(message)

# the result will be as follows:
# Hello, @joviansummer!

Let's see another example. This time, field length and text alignment will be specified:

wit_id = ['steemchiller', 'justyy']
for item in wit_id:
  # wit_id length is 20, aligned to the left side
  msg = f"{item: <20} 0.23.1"
  print(msg)

# result will be something like this:
# steemchiller         0.23.1
# justyy               0.23.1

If the result of the above code is sent to Discord as a code block, it will look fairly similar to a table. Of course actual code revision for the reporter will be more complex, but this is the main idea.

Hopefully, this post will be helpful to anyone working with Discord. Thank you for reading, and have a wonderful day!


@joviansummer's STEEM projects

@jswit witness:
I'm running a STEEM witness node. I'd really appreciate it if you vote for my witness account @jswit. (https://steemitwallet.com/~witnesses)
[ENG] Introducing @jswit witness project

@jsup curation:
[ENG] Introduction to @jsup curation project
[ENG] Using @jsup curation project as an auto-voting agent
[ENG] jsup 2.0 - make your upvote great again

Steemit-Search:
Steemit-Search: a simple website for post searching

jSTEEM:
jSTEEM project - STEEM blockchain explorer on Telegram messenger

STEEM.NFT:
STEEM.NFT - Preserve your art on Steemit & IPFS

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기