What is the project about?
Community Upvote Bot is a bot written in Python and intended to be deployed and run on a free Heroku dyno.
The bot assumes two things:
a member of the community is every steem account followed by the bot's steem account. The members are listed and removed by following and unfollowing their steem blogs.
a member is using a community tag on the post he or she wants the bot to vote on
How the Bot Works?
The bot runs as a Heroku task. It reads its settings from Heroku environment and then:
- It pulls the list of accounts followed by its steem account
- it goes through the list and fetches the latest blog entry
- it checks the post for the community tag
- it votes on the post (if it hasn't already voted on)
How To Setup the Bot?
Login to Heroku, create the app, and add scheduler addon to it:
$ heroku login
$ heroku create <your_app or leave it out>
$ heroku addons:create scheduler:standard
Configure the bot:
$ heroku config:set STEEMIT_ACCOUNT=<bot account>
$ heroku config:set VOTE_WEIGHT=<default vote weight>
$ heroku config:set PRIVATE_ACTIVE_KEY=<private active key>
$ heroku config:set COMMUNITY_TAG=<your community tag>
Open the scheduler dashboard and set the desired run interval:
$ heroku addons:open scheduler
Make sure everything is set correctly by doing a test run:
$ heroku run python vote.py
Technology Stack
The bot is written in Python and uses the following libraries: flask, gunicorn, and steem. It runs on the Heroku platform.
Roadmap
The planned features included:
- Web-based configuration
- Per member vote weight settings
- Daily upvote limits
If you want the code dm me on Discord: beat-the-bookies#6054
Thanks for the contribution!
It's a cool idea, but I think the code is a bit too trivial. If you want to get rewarded for future contributions to this project then I would recommend that you make sure there aren't any other projects that already do this (I think there are quite a few similar Python scripts like this) and that you work on improving the quality of your code.
I love Python and football, so if you ever need help with anything you can contact me on Discord at Amos#4622.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit