Do You Want to Run You Own Voting Bot?

in #guide7 years ago


Are you looking to run and maintain your own voting bot? Perhaps you are not comfortable giving out your posting key? It's not that difficult thanks to @inertia he developed a fairly simple to use a voting bot.

https://steemit.com/radiator/@inertia/drphil-rb-voting-bot-improved-fanbase-support

There are many users that aren't too tech savvy and may find the directions difficult to follow so I'll try to make things easy and do a step by step procedure.

You need Linux or macOS to use this bot and I know many people are on Windows so you can follow this tutorial on installing a Linux subsystem on Windows 10 if you are on the Creators Update.

https://steemit.com/tutorial/@bitcoinparadise/how-to-install-ubuntu-on-windows-10

Install

Open the Command Line Terminal on Linux or macOS and enter the following commands:

Linux

sudo apt-get update 
sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev 
sudo apt-get upgrade
gem install bundler

Note: when you use the sudo command in the beginning, you'll most likely be prompted for a password that was made when setting up the Linux system.






When you do the sudo apt-get upgrade command, you will most likely be prompted to continue. Just type y and press Enter and it will proceed with upgrading packages.



Then continue with gem install bundler.



If you're doing this in the Windows Linux Subsystem, You may be missing some libraries and need to install them. I forgot which one exactly was missing one needed but the ones below should get your bot working. If you are still having issues getting the bot to run, you can always leave a comment or contact me on Discord.

sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev build-essential libreadline-dev libyaml-dev

macOS

gem install bundler


Next, clone this gist and install the dependencies:

git clone https://gist.github.com/61bcc2b821aa5acb24f7fc88921950c7.git drphil
cd drphil
bundle install



After you have the dependencies installed, you can edit the config file labeled drphil.yml
To do this, while in the drphil directory type:

sudo nano drphil.yml



You'll see this:

From here, you can set up your configuration. You can read the details on what each setting does in the same post earlier.
https://steemit.com/radiator/@inertia/drphil-rb-voting-bot-improved-fanbase-support

Just remember to add your private posting key in the voters: section. The 2 accounts that are listed are from an early experiment and testing purposes that don't really have any SP so voting with those accounts won't benefit you at all so you can either comment or delete those keys.

voters:
#  - social 5JrvPrQeBBvCRdjv29iDvkwn3EQYZ9jqfAHzrCyUvfbEbRkrYFC        
#  - bad.account 5XXXBadWifXXXdjv29iDvkwn3EQYZ9jqfAHzrCyUvfbEbRkrYFC   
  - YOUR_STEEM_ACCOUNT YOUR_PRIVATE_POSTING_KEY



I would also recommend changing the threshold on the voting power setting so it doesn't go too low. If you are fine with having your voting power drain down to 25%, then you can leave it at default.

min_voting_power: 25.00 % 


Note: You may notice at the bottom under chain_options: shows https://steemd.steemit.com This currently works fine but in my screenshot, you can see I changed it to https://api.steemit.com.

Steemit, inc is planning to deprecate the steemd.steemit.com endpoint and use the https://api.steemit.com endpoint instead. I'm sure @inertia will update this but just be aware of this in the future.
https://steemit.com/steemitdev/@steemitdev/update-your-steem-apps-big-changes-coming-for-3rd-party-developers


When you're all done with your settings, to save the changes and exit just press:
Ctrl + x
y
Enter

To run the bot, just type:

ruby drphil.rb

Your result should show something this:




Your voting bot is running and make sure it is voting correctly and you should see this below. If not, you might have entered your posting key incorrectly...


You're all set! Now you are running your very own voting bot and not have to worry about anyone or service misusing your key.

Note: You may notice from time to time this error:

Error: 765: unexpected token at ''
It happens due to the node. You can just ignore it and the bot will continue on.

If you need any help or have any questions, you can stop by SteemSpeak on Discord, contact me on Discord, or just leave a comment below.




Image Source



Thank you for taking the time to read my post. Feel free to follow and find me in SteemSpeak on Discord.
Sort:  

Thanks. Will try. Always good to learn new things. Setting one bit up sounds like a lot fun too for people like me who’s not tech savvy at all. :)

exactly ! Thank you bitcoinparadise for this great post !

Would be nice if I could automatically upvote all posts with the pivx tag.

Good news, you can! all you need to do is uncomment # only_tags steemit and change it to only_tags pivx and will automatically vote content in the pivx tag ;)

dear bitcoinparadise you are a genius ;) thank you for your help ! if I had more time it would be setup already, but I will asap :)! thanks again.

Yes definitely. If you need any help, you know where to find me or just ask here ;)

Thank you! Really appreciate it.

Sounds very nice. I'll have a look at it. Not necessarily because I want to run some, but it looks fun to get into the techniques ;)

Yea, always good to learn stuff :)

Thank you, thank you, a thousand times thank you!! @bitcoinparadise and of course @inertia, you are superstars, and I will defo be doing this :-)

Cg

Sorry forgot to reply :P

You're very welcome and feel free to contact me if you have any questions :)

No problem, I look forward to having a go at this :-)

Cg

That was a very interesting post sir. I've always wondered how to do that voting bot. Will try it when I have time. Upvoted and resteemed your post. I will be following you sir.

Thanks for sharing this. Very informative, I'll try to implement it and see how that work.

Hm, das hat bisher unter Fedora 26 nicht so besonders gut funktioniert. Grundsätzlich scheint der Bot zu laufen und auch fleißig zu sammeln, aber beim Versuch dann tatsächlich zu posten, gibt es folgende Meldung:

undefined method `regenerate_key' for Bitcoin::OpenSSL_EC:Module

Der private Key scheint einwandfrei zu sein. Scheint eher etwas aus dem inneren von Ruby zu sein. Ideen?

I have the same problem on a Raspberry Pi 3 .. did you solve it?

No sorry, I gave up on it.

i will install the aps. how could i find u?

I mentioned on the post on Discord or in Steemspeak...

i just heared that its aa robort aps ...! is that right?

I don't know what a robort aps is...

its reply alometicly

Great post !! Im trying to do bundle install after going to drphil directory.
But im getting ...

Fetching gem metadata from https://rubygems.org/.........
net-http-persistent-3.0.0 requires ruby version ~> 2.1, which is
incompatible with the current version, ruby 1.9.3p484
root@EntireFew-VM:~/drphil#

Im a linux noob lol

Looks like you need to update your ruby version. I would recommend using RVM: https://rvm.io/rvm/install
If you are on Ubuntu, you should follow the instructions here: https://github.com/rvm/ubuntu_rvm

Then do bundle install.

Awesome thanks a lot for your help

Sure, feel free to message me here or on Discord if you need more help :)

Will do thanks buddy ! :)

Will do ! Thanks buddy ! :)

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.030
BTC 61599.36
ETH 3407.97
USDT 1.00
SBD 2.47