Stephard: Discord Bot that prevents abusing of post-promo
In #teammalaysia discord server, there is #steemit-post-promo channel, this channel serve the purpose of sharing your post for others to use. To ensure that all posts have equal exposure, there is a rule that one should share their link every 18 hours. However, this rule always got ignore and our admin @littlenewthings need to filter it manually and give those abuser warnings.
So, she suggested building this bot to solve the problem of the abusion.
Today, we implemented Stephard into our discord channel!
Designed by Freepik
About the bot
Name: Stephard
Description:
A bot that deletes post-promotion links shared in #teammalaysia discord group when it being abused. Guiding those lost "sheep" back to the sheep fence!
License: MIT
Github Repo: superoo7/oo7-discord
Few days ago, I manage to build a working prototype. You can read more about it at oo7 Bot in progress.
Bot Picture from Freepik
How this bot work?
All message on discord will send through the bot. The bot act as a middleware after a user send a message. This bot will check the author's last message datetime, and then from there, calculate wether the user have posted any link in the past 18 hours.
If you are first time in this channel, the bot will greet you.
If your post is accepted. (After 18 hours rule)
If you abused. (Share a link within 18 hours rule)
Future Plan
This is just a first step of the Discord Bot, in future, we might implement #teammalaysia bot that will upvote our communities post. So, stay tune for more!
Side Notes
- I also develop a utility bot called statBot. Currently, it provides me some utility to check popularity of a certain tag, steem/sbd ratio, sbd and steem price.
- Anyone interested in implementing this bot can ping me jlwhoo7 on twitter.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved. A great work. I have gone through the code and seen that you are taking 1000 messages and then checking if the author has posted or not. Few issues with this approach
What you can do is to write the Discord Unique Name of the Poster as well as the Steemit Name of the Poster in the db and then check against it. Why both Discord Name and Steemit Name because what if I have two Discord User Name and one Steemit Account, then I can post the same link twice with two different ids.
You can contact us on Discord.
[utopian-moderator]
Thanks for the suggestions, it is really helpful.
I was trying to create a stateless bot first, before implementing a db.
This weekend, we will conceive ideas for upgrading the bot.
It is an awesome bot you have created! Now we need to fine tune it so that it can intelligently detect posted messages.
You got my 100% upvote!
Thanks @littlenthings ill update it when i am free haha
we will discuss about that later and see how we can detect messages slightly intelligently
Alright.
yo yo! didnt manage to greet you! nice bot there!
Haha, next time ba. Still have chance 😁
Stephard the Shepherd, that step hard on abuser ?
😂😂😂😂
Suddenly your typo make sense
Not sure what to do with it, shepherd was registered on discord, but on my documentation, i have written as stephard. 😅
just fly with it 😂😂😂
Good to have bot in teammalaysia discord channel. In order to prevent honest mistakes, can we check time to time on what time we can post just like we can check the SBD dollar price?
yeah, I was thinking the same thing @asyrafahamed
sometimes when the last post is not too far back, we can check... sometimes too many posts in between.
@superoo7 - maybe can have a look at moonbot - they have a system to check have much time lapsed from last upvote... also when our contract ends - maybe can be utilised for us to check on our last post promo....
Alright, i just got started building bot. A long way to go ~
Yup...i believe the bot will become smarter, thanks to @superoo7 at least we have a bot.
Currently no. Haha, I might think of a way to implement this.
Great work, @superoo7! :D
Thank you 😁
Intelligent.
Awesome bot
That's an awesome idea for a channel bot! I like how polite your "Stepherd" is, and that name is brilliant! Well done, sir!
Thanks a lot @traciyork , it was a misspelled of shepherd 😁
LOL! I figured that - I thought it was clever to mush together "Steemit" and "Shepherd" that way. 😊
Its a beautiful mistake 😁
Even better! 😄
Hey @superoo7 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
Wow