- Title: mrkrabs.rb - Self Voting Bot
- Tags: radiator ruby steem steemdev curation
- Notes:
Mr. Krabs is a reimplementation of Dr. Phil, but instead of voting for new articles, it self-votes for posts and comments you write, after certain rules are met. By default, it votes for posts that reach 60 votes or is 6 days old. The default for comments is 6 votes or 6 days old.
- YAML config.
voting_rulesvote_weighta static percentage (like100.00 %)history_limitused to set how far back to look in account history.enable_commentsoption to vote for post replies (default false).min_post_ageallows you to only upvote once a post has reached a certain agemin_comment_ageallows you to only upvote once a comment has reached a certain agemin_post_votesallows you to only upvote once a post has reached a certain number of votesmin_comment_votesallows you to only upvote once a comment has reached a certain number of votespoll_timehow often to check for new content (in seconds)
accountsList of accounts to vote on, e.g:account wif- Or use
accounts: accounts.txt- The format for the file is just:
account wif(no leading dash, separated by space)
- The format for the file is just:
- Or use
The goal is to vote after the rules have been met. Setting 60 votes or 6 hours will have Mr. Krabs vote in either situation, whichever happens first.
To use this Radiator bot:
$ sudo apt-get update
$ sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev
$ sudo apt-get upgrade
$ gem install bundler$ gem install bundlerYou can try the system version of ruby, but if you have issues with that, use this how-to, and come back to this installation at Step 4:
I've tested it on various versions of ruby. The oldest one I got it to work was:
ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-darwin14.4.0]
First, clone this gist and install the dependencies:
$ git clone https://gist.github.com/acc37590f160842afb5528eb2c63a636.git mrkrabs
$ cd mrkrabs
$ bundle installThen run it:
$ ruby mrkrabs.rbMr. Krabs will now do it's thing. Check here to see an updated version of this bot:
https://gist.github.com/inertia186/acc37590f160842afb5528eb2c63a636
Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:
$ git pullUsually, this works fine as long as you haven't modified anything. If you get an error, try this:
$ git stash --all
$ git pull --rebase
$ git stash pop
If you're still having problems, I suggest starting a new clone.
mrkrabs.yml:1: syntax error, unexpected ':', expecting end-of-input
Unable to vote with <account>. Invalid version
Make sure the .yml file voter items have the account name, followed by a space, followed by the account's WIF posting key. Also make sure you have removed the example accounts (social and bad.account are just for testing).
Is there a list of nodes?
https://steem-third-party.github.io/steem-servers/
*Image Source: [ekarasz.deviantart.com](https://ekarasz.deviantart.com/art/Mr-Krabs-603720464)*
See my previous Ruby How To posts in: /f/ruby
If you're using Mr. Krabs, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on STEEM and SteemSpeak.
I don't believe in intellectual "property". If you do, consider Mr. Krabs as licensed under a Creative Commons 
