GentBG x PUSSTEEM - burning both STEEM and PUSS

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/gentbg-x-pussteem-burning-both-steem-and-puss Hello, this is @joviansummer(witness: @jswit), developer of GentBG project. I registered @gentbg account to PUSSTEEM about a week ago and donated some of my own PUSS token to @gentbg's EPUSS account. Now, @gentbg will burn STEEM and EPUSS at the same time. PUSSTEEM's boosting upvotes will help increasing baseline burning significantly. @gentbg's SP reward is delegate to @jsup to get automated upvotes, forming a baseline burning of liquid reward independent of other people's upvotes. Some may argue 100%(both liquid and SP reward) burning is much better, but I chose this approach to prevent @gentbg from becoming a spamming account. Constantly asking for upvotes via mentioning and commenting every week may eventually become a big annoyance to curators. That being said, anyone is welcome to participate in countering STEEM inflation by giving upvotes ...

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포스팅 강박에서 벗어나기