Creating an Discord Bot based on Steem Power #1

in #development6 years ago

The struggles and hussle with this thing is unreal, but it sort of has come to life already, it started off as an silly idea from @kassixo to make and bot integrated with Steemit API for our Estonian Steemit community Discord channel, so we would could automatically add a corresponding rank depending on how much SP do you have.


0dc3e31dd87b13.png

Since we don't have actual "whales" from Estonia, or not that I know of, we sort of lowered the standards a bit and created some side levels as well for it.

For us it goes like this

  • Vaal/Whale (10000+)
  • Delfiin/Dolphin (5000-10000)
  • Haug/Pike (2000-5000)
  • Väike kala/Small fish (500-2000)
  • Merihobu/Seahorse (100-500)
  • Teokarp/Shell (15-100)
  • Plankton (0-15)
The reason we created this sort of structure on the first place was to actually motivate others to maybe reach certain goals. I don't know about the others, but damn it works for me.

So back to the Discord Bot.

I started off looking at some Steemit API tutorials to figure out how things work and I ended up finding an minimized Steemit Javascript file, which included all different methods that are available to use from the API itself.

It continued a hard and bumpy road, I wanted to give up a thousand times already, but something kept pushing me forward, maybe I can leave my mark with this little Bot, or maybe we could develop this in the future to do even more things.

Last night around 6PM I got the result I wanted, I was able to catch vests from Steemit Database and show it on my screen.



So far I'm proud of what have I done, since in the process I learned a ton of things and I will not stop here.

Currently it's showing the username you searched, available balance in STEEM, total VESTS for who may be interested and then VESTS converted into SteemPower itself, it isn't really accurate on bigger accounts because there is no possible way to get Steem per 1M Vests from Steemd.com anymore. But it's close enough and every now and then I could recalculate it if needed.

Anyway to sum it up, I need to still convert it into a Discord Bot and add in some commands, will see how that goes haha, thanks a ton for reading and if you have any suggestions feel free to leave them down below.
When it's all done I may consider to release it for the public.

If you are an Estonian and would like to join our Discord channel, feel free to do so by joining it with clicking on the image below.

1_TTOJz35-lJmjWGj59786GA.png

Sort:  

This is super-interesting. i remember how i once tried to build a discord bot for myself. Getting the bot and the token was the easiest step. Making it come alive and carry out a function was a problem for me.

Amazed by the work you've done here. maybe i could connect to learn too, someday.

Thanks buddy, we can maybe have a chat and see help out each other somehow :)

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!

Congratulations @frankk! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Resteem and Resteemed added

Support SteemitBoard's project! Vote for its witness and get one more award!