It turns out some clown wanted to use this bot on Hive. And it turns out it mostly worked, except for a few minor tweaks.
I also added a feature so the bot will look up the latest hive nodes at launch, and use those nodes as failover (backup nodes in case the current one goes down).
Overview
Dr. Doogie (drdoogie.rb
) is a voting bot that will trail the votes of other accounts in order to then mirror their voting pattern.
Install
To use this Radiator script:
Get rvm
See: rvm.io
Get bundler
$ gem install bundler
Bundle
First, clone this gist and install the dependencies:
$ git clone https://gist.github.com/d57c9bc744f05ada01d173521c01df8a.git drdoogie
$ cd drdoogie
$ bundle install
Run
$ ruby drdoogie.rb
Check here to see an updated version of this script:
Upgrade
Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:
$ git pull
Usually, 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.
Troubleshooting
Problem: What does this error mean?
drdoogie.yml:1: syntax error, unexpected ':', expecting end-of-input
Solution: You ran ruby drdoogie.yml
but you should run ruby drdoogie.rb
.
Problem: Everything looks ok, but every time drdoogie tries to post, I get this error:
`from_base58': Invalid version (RuntimeError)
Solution: You're trying to vote with an invalid key.
Make sure the .yml
file voters
item have the correct account name and WIF posting key.
Problem: The node I'm using is down.
Is there a list of nodes?
Solution: Yes:
https://developers.hive.io/quickstart/#quickstart-hive-full-nodes
See my previous Ruby How To posts in: #radiator #ruby
Get in touch!
If you're using drdoogie, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on Hive.
License
I don't believe in intellectual "property". If you do, consider drdoogie as licensed under a Creative Commons License.
Thanks for the hard work @inertia, after your updates this works like a charm, although you still have a lot of work to do to make me a believer in ruby.
@r0ndon is not a clown. He's a highly idiotic being who just resem...nevermind, he's a clown.
Laugh out loud. Such humour. By the way @r0ndon is on the way to retaliate
👏 Ruby & Hive!