A Simple Manual Discord Upvote Bot
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
Things Pending to be implemented
- Error Handling
- 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