Posts

Showing posts with the label discord

[ENG] STEEM Security - receive STEEM alert messages via Discord

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/eng-steem-security-receive-steem-alert-messages-via-discord Hello, this is @joviansummer(witness: @jswit). I'd like to introduce my new experimental project, "STEEM Security." I started this dev project for my personal use, but decided to overhaul the code to make it available to all steemians. This is a Discord bot which will send STEEM security alert to you. Currently, the bot will send an alert message if the following operations happen: - sending STEEM/SBD to another account - changing SP delegation - account update Here is how you set up the Discord bot: Login to Discord and join my STEEM_SECURITY server: https://discord.gg/pawu8YTAvm If you check the member list, you will see "STEEM_SECURITY" bot account. Right-click the bot account and select "Message" to open a DM(direct message) channel with it. On DM channel, register your steem account by sending ...

Making a table format on Discord

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/making-a-table-format-on-discord 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: 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 = '@joviansumm...

How to mention(ping) user on a Discord channel with web hook

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/how-to-mention-ping-user-on-a-discord-channel-with-web-hook Hello, this is @joviansummer. I've been providing automated hourly report of missed blocks on witness Discord channel. Considering witness @faisalamin's suggestion, I did some research and test to find out how to mention(ping) discord users when their witness nodes are missing blocks. The reporter process uses web hook to send missed blocks report. Discord's developer document for web hook is at https://discord.com/developers/docs/resources/webhook . I decided to write this post because it took me a bit of time to figure out how to ping a user. It might be of a little help for anyone interested in working with Discord web hook. When you use Discord with your web browser, mentioning someone is simple. You just type Discord username with preceding '@'. If you mention Discord user joviansummer for example, you just type @joviansu...