[Marshal] steem-moderation Discord bot. Sorting post links into channels feature
![image.png](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1516631179/otdkp7r2fzg3iyfmm1ku.png)
Marshal is Discord bot maintained by @littleboy and developed by @jestemkioskiem. Its job is to manage new post links placed by Discord users and sort them into proper #tag channels. The pasted links get post's metadata from Steem blockchain and show them in catchy way.
![image.png](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1516631096/ptmfclohioptlnsq5wem.png)
Task request
![image.png](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1516630806/qctscs6qzbmqvpzr47ri.png)
Few days ago @littleboy asked for a help to develop above functionality.
Feature
Every pasted link like that
https://steemit.com/tematygodnia/@anna.urbanska/obrocili-kleske-w-sposob-na-zycie-historia-tajskiej-rodziny-dotknietej-trzesieniem-ziemi
is immediately intercepted by Marshal. It gets moved and bot reply message as follows:
Proper channel highlights with a +1 new notification.
There we see our pasted link. It has detailed summary which was already created by @jestemkioskiem. Even if the bot has moved the link, he adds which user did it in previous channel:
Second feature is post acceptation by mods. By reaction of ☑️ icon, it gets approved and then moved to proper #verified_channel.
Post disappear with its details also. It gets moved in similiar way to next channel.
And we see the result.
The code contains also latest Steem API node fixes. The steemd.com abandoned API is draining Steem-bot creators last days ;) A little of code refactoring happened also.
Links
https://github.com/codename-littleboy/steem-moderation/pull/15
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
That was a fast one!
Let's talk about bots.
Robocop 1 is the best
Hey @mys I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
i enjoy your post! thanks