Steem Community Upvote Bot

Words
238
Reading
2 min
Listen
Play
8y

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

Steem Community Upvote Bot | Ecency