A Simple Manual Discord Upvote Bot

in #utopian-io9 years ago (edited)

This development contribution is about a simple manual discord upvote bot of Steemit which was written for the Discord Group Admins who want to upvote their group members.

It is using npm packages Discordie to talk to Discord and Steem to talk to Steem Blockchain. At first we will connect to the Discord Server after passing the Discord Bot Token.

Once connected we will wait for the commands till we receive the $upvote command. Once we receive the $upvote command with the Steem URL we will get the author and the permalink of the the post to upvote.

After that using the the function steem.broadcast.voteAsync() we will vote on that particular post. One think to note here that we can add how much percentage of upvote we are gonna use.

So for example when we try to upvote a url with 15% we will write like below

$upvote Steem_url 15

image.png

Things Pending to be implemented

  1. Error Handling
  2. Upvote only post which is 12 hours before the payout

Suggestions for the Bot are always welcome.

Github Repo : https://github.com/codingdefined/DiscordUpvoteBot
Commit : https://github.com/codingdefined/DiscordUpvoteBot/commit/25bd5a2c3d7289cafaf13fa9edf19f8e9075533c



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  
Qurator
Your Quality Content Curator
This post has been upvoted and given the stamp of authenticity by @qurator. To join the quality content creators and receive daily upvotes click here for more info.

Qurator's exclusive support bot is now live. For more info click HERE or send some SBD and your link to @qustodian to get even more support.

Thank you for your contribution and the cool bot work :)
Before approving your work though, please edit the post text, and include within a link to the relevant github as well as your most recent Pull Request. Those are essentially needed as part of the article's content.

You can contact us on Discord.
[utopian-moderator]

Thanks @mcfarhat, Since it is my repo I have included the Latest Commit as well as the Github Repo. Please let me know if its ok.

Yes looking good, thank you
This has been approved now.

Hey @codingdefined I am @utopian-io. I have just upvoted you at 14% Power!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.084
BTC 62609.27
ETH 1670.67
USDT 1.00
SBD 0.42