Steem Community Upvote Bot

in utopian-io •  7 years ago  (edited)

scb.jpeg

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:

  1. 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.

  2. 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:

  1. It pulls the list of accounts followed by its steem account
  2. it goes through the list and fetches the latest blog entry
  3. it checks the post for the community tag
  4. 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:

  1. Web-based configuration
  2. Per member vote weight settings
  3. Daily upvote limits


If you want the code dm me on Discord: beat-the-bookies#6054

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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]