drphil.rb - Voting Bot - gem update and bug fixes by inertia

View this thread on steempeak.com
· @inertia ·
$49.28
drphil.rb - Voting Bot - gem update and bug fixes
#### New Features

* Bug/console output fixes.
* Improved `unique_author` logic to use `account_history` instead of internal timer for improved accuracy between runs.
* Gem update.
* Additional error handling.
* Handling bad json_metadata.

#### Features

* YAML config.
  * `voting_rules`
    * `winfrey` mode that acts like the winfrey bot, all voters vote for everyone
    * `drphil` mode one random voter votes for everyone (default)
    * `following_vote_weight` - for accounts that the voter follows
    * `followers_vote_weight` - for accounts that follow the voter
    * `min_rep` (default `25.0`)
    * `min_wait` and `max_wait` (in minutes) so that you can fine-tune voting delay.
    * `favorite_accounts` list and separate `favorites_vote_weight` option.
      * Note: votes will be cast for favorites irregardless of rep.
    * `enable_comments` option to vote for post replies (default false).
    * `only_first_posts` option to only vote on an author's first post (default false).
    * `max_rep` option, useful for limiting votes to newer authors (default 99.9).
    * `vote_signals` account list.
      * Optionally allows multiple bot instances to cooperate by avoiding vote swarms.
      * If enabled, this feature allows cooperation without sharing keys (in `drphil` mode).
    * `min_rep` can now accept either a static reputation or a dynamic property.
      * Existing static reputation still supported, e.g.: `25.0`
      * Dynamic reputation, e.g.: `dynamic:100`.  This will occasionally query the top 100 trending posts and use the minimum author reputation.
      * Now checking `vote_weight: 0.00 %` and skipping without broadcast.
        * This is useful for special configurations that *only* vote for favorites.
      * `min_voting_power` to create a floor with will allow the voter to recharge over time without having to stop the script.
    * Optionally configure `voters` as a separate filename.  E.g:
      * `voters: voters.txt`
        * The format for the file is just: `account wif` (no leading dash, separated by space)
      * Or continue to use the previous format.
    * Also optional support for separate files in each (format one per line or separated by space or both):
        * `favorite_accounts`
        * `skip_accounts`
        * `skip_tags`
        * `flag_signals`
        * `vote_signals`
    * `only_fully_powered_up` which will only vote for posts that receive 100% STEEM Power author rewards.
* Skip posts with declined payout.
* Skip posts that already have votes from external scripts and posts that were edited.
* Argument called `replay:` allows a replay of *n* blocks allowing you to catch up to the present.
  * E.g.: `ruby drphil.rb replay:90` will replay the last 90 blocks (about 4.5 minutes).
* Thread management
  * Counter displayed so you know what kind of impact `^C` will have.
  * This also keeps the number of threads down when authors edit before Dr. Phil votes.
* Now streaming on Last Irreversible Block Number, just to be fancy.
* Now checking for new HF18 `cashout_time` value (if present).
  * This will skip voting when authors edit their old archived posts.
  * Added `unique_author` (optional) which takes an integer in minutes.  This will limit voting to 1 vote per period.  E.g.: Set it to 1440 to only vote for each author once a day.
  * Added `max_votes_per_post` (optional) which only votes *n* times per post (`winfrey` mode only).
  * Added `only_tags` (optional) which only votes on posts that include these tags.
  * Alternative voting weights all inherit from `vote_weight` if not present.
  * Favorites (`favorite_accounts`) can now have individual vote percent.
    * Formatted as: account:weight (e.g.: `inertia:100.00`)
  * Now checking if any voter can vote at all.  If at least one voter has a non-zero vote_weight, return true.  Otherwise, don't bother to even queue up a new thread, thus saving memory.
  * Argument called `stream:false` will exit without streaming the blockchain.  Useful in situations where you only want to `replay:` and exit.

#### Overview

Dr. Phil (`drphil.rb`) is reimplementation of the "Winfrey" voting bot specification.  The goal is to give everyone an upvote.

One optional improvement is that instead of voting 1% by 100 accounts like the Winfrey bot spec, this script can vote 100% with 1 randomly chosen account.

If the complaint about Winfrey is blockchain bloat, Dr. Phil prescribes weight loss to address this. But this feature would only work if there are enough voters defined in the script.  If you plan to use this script for one or two accounts, you'll probably want to adjust the `VOTE_WEIGHT` constant to something a bit lower.

---

#### Install

To use this [Radiator](https://steemit.com/steem/@inertia/radiator-steem-ruby-api-client) bot:

##### Linux

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

##### macOS

```bash
$ gem install bundler
```

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:

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

Then run it:

```bash
$ ruby drphil.rb
```

Dr. Phil will now do it's thing.  Check here to see an updated version of this bot:

https://gist.github.com/inertia186/61bcc2b821aa5acb24f7fc88921950c7

---

#### Upgrade

Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:

```bash
$ 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?

```
drphil.yml:1: syntax error, unexpected ':', expecting end-of-input
```

##### Solution: You ran `ruby drphil.yml` but you should run `ruby drphil.rb`.

---

##### Problem: Everything looks ok, but every time Dr. Phil tries to vote, I get this error:

```
Unable to vote with <account>.  Invalid version
```

##### Solution: You're trying to vote with an invalid key.

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

##### Problem: The node I'm using is down.

Is there a list of nodes?

##### Solution: Yes, special thanks to @ripplerm.

https://ripplerm.github.io/steem-servers/

---

<center>
  <img src="http://i.imgur.com/qUZYLiQ.png" />
</center>

See my previous Ruby How To posts in: [/f/ruby](https://chainbb.com/f/ruby)

## Get in touch!

If you're using Dr. Phil, I'd love to hear from you.  Drop me a line and tell me what you think!  I'm @inertia on STEEM and [SteemSpeak](http://discord.steemspeak.com).
  
## License

I don't believe in intellectual "property".  If you do, consider Dr. Phil as licensed under a Creative Commons [![CC0](http://i.creativecommons.org/p/zero/1.0/80x15.png)](http://creativecommons.org/publicdomain/zero/1.0/) License.
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 130 others
πŸ‘Ž  
properties (23)
post_id20,159,516
authorinertia
permlinkdrphilrb-voting-bot-gem-update-and-bug-fixes
categoryradiator
json_metadata"{"tags": ["radiator", "ruby", "steem", "steemdev", "curation"], "format": "markdown+html", "namespace": "ruby", "app": "chainbb/0.4"}"
created2017-12-12 01:08:42
last_update2017-12-12 01:08:42
depth0
children23
net_rshares12,357,897,957,340
last_payout2017-12-19 01:08:42
cashout_time1969-12-31 23:59:59
total_payout_value36.980 SBD
curator_payout_value12.303 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length7,332
author_reputation227,335,189,892,062
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries
0.
accountchainbb
weight1,325
1.
accountinertia
weight175
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (195)
@josediccus ·
$4.93
@inertia  wow I can't really say because I still need to ask questions, is this a new type of bot vote buying? 

The way you have represented these codes it's so amazing and all different the 100% part would really make a difference.

Please fill me in, fantastic analysis here
πŸ‘  ,
properties (23)
post_id20,160,057
authorjosediccus
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171212t011641804z
categoryradiator
json_metadata"{"app": "steemit/0.1", "users": ["inertia"], "tags": ["radiator"]}"
created2017-12-12 01:16:48
last_update2017-12-12 01:16:48
depth1
children4
net_rshares1,090,845,412,895
last_payout2017-12-19 01:16:48
cashout_time1969-12-31 23:59:59
total_payout_value3.733 SBD
curator_payout_value1.200 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length277
author_reputation430,967,424,524,957
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@inertia ·
$0.02
The original goal of this bot was to give everyone an upvote.  Legend has it, some people used this bot to vote 1% on every new post.  That was in the days of 3,000 active users per day.

These days, people use it as a replacement for [Streemian Fanbaseβ„’](https://streemian.com/profile/fanbase).
πŸ‘  
properties (23)
post_id20,162,084
authorinertia
permlinkre-josediccus-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171212t014555943z
categoryradiator
json_metadata"{"app": "steemit/0.1", "links": ["https://streemian.com/profile/fanbase"], "tags": ["radiator"]}"
created2017-12-12 01:45:57
last_update2017-12-12 01:45:57
depth2
children3
net_rshares5,527,842,267
last_payout2017-12-19 01:45:57
cashout_time1969-12-31 23:59:59
total_payout_value0.022 SBD
curator_payout_value0.002 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length295
author_reputation227,335,189,892,062
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@josediccus ·
Wow that would have been awesome if the original agenda was maintained 

Thank you for filling me in on this and great analysis too
properties (22)
post_id20,163,378
authorjosediccus
permlinkre-inertia-re-josediccus-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171212t020607046z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2017-12-12 02:06:12
last_update2017-12-12 02:06:12
depth3
children2
net_rshares0
last_payout2017-12-19 02:06:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length131
author_reputation430,967,424,524,957
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@rival ·
$0.16
Wow, thank you again. The amzing work you do into this platform is such an added value.. #INERTIAISMASTER
πŸ‘  
properties (23)
post_id20,183,123
authorrival
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171212t065518196z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator", "inertiaismaster"]}"
created2017-12-12 06:55:18
last_update2017-12-12 06:55:18
depth1
children0
net_rshares35,767,011,425
last_payout2017-12-19 06:55:18
cashout_time1969-12-31 23:59:59
total_payout_value0.122 SBD
curator_payout_value0.040 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length105
author_reputation53,292,570,288,120
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@scrooger ·
Thanks for all the hard work with the bot! It truly is one of the best out there an I use it to run @qurator. Without it I would be lost! =)
properties (22)
post_id20,344,625
authorscrooger
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171213t171249244z
categoryradiator
json_metadata"{"app": "steemit/0.1", "users": ["qurator"], "tags": ["radiator"]}"
created2017-12-13 17:12:54
last_update2017-12-13 17:12:54
depth1
children0
net_rshares0
last_payout2017-12-20 17:12:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length140
author_reputation38,805,107,322,101
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@koh ·
Nice! Thanks @inertia and @seablue for mentioning this in #SteemSpeak
properties (22)
post_id20,354,863
authorkoh
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171213t191004386z
categoryradiator
json_metadata"{"app": "steemit/0.1", "users": ["inertia", "seablue"], "tags": ["radiator", "steemspeak"]}"
created2017-12-13 19:10:03
last_update2017-12-13 19:10:03
depth1
children0
net_rshares0
last_payout2017-12-20 19:10:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length69
author_reputation1,895,735,652,406
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sumonpra ·
Thanks for your post :-)
properties (22)
post_id20,499,851
authorsumonpra
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171215t025857426z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2017-12-15 02:59:06
last_update2017-12-15 02:59:06
depth1
children0
net_rshares0
last_payout2017-12-22 02:59:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length24
author_reputation1,905,460,717,963
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tradingideas ·
Good Result!! Thanks
properties (22)
post_id20,515,589
authortradingideas
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171215t064757094z
categoryradiator
json_metadata"{"app": "busy/2.1.0", "community": "busy", "tags": ["radiator"]}"
created2017-12-15 06:47:57
last_update2017-12-15 06:47:57
depth1
children0
net_rshares0
last_payout2017-12-22 06:47:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length20
author_reputation3,170,378,477,762,051
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@indiantraveller ·
Very great job
properties (22)
post_id20,651,792
authorindiantraveller
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171216t120739086z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2017-12-16 12:07:42
last_update2017-12-16 12:07:42
depth1
children0
net_rshares0
last_payout2017-12-23 12:07:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length14
author_reputation9,697,653,591,082
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@seablue ·
Great news.  I'm looking forward to upgrading in the near future and trying out some of the new features.
properties (22)
post_id20,682,607
authorseablue
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171216t174056283z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2017-12-16 17:41:12
last_update2017-12-16 17:41:12
depth1
children0
net_rshares0
last_payout2017-12-23 17:41:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length105
author_reputation18,860,602,215,122
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@thegoldenphoenix ·
Inertia thank you for the great work
properties (22)
post_id21,113,675
authorthegoldenphoenix
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20171220t003631280z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2017-12-20 00:36:27
last_update2017-12-20 00:36:27
depth1
children0
net_rshares0
last_payout2017-12-27 00:36:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length36
author_reputation10,797,751,623,277
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@praguepainter ·
I'm trying to setup drphil on a raspberry pi3 and it wont let me vote. Maybe I dont have libssl installed correctly ?? 

I keep getting the following error:
Pausing 0.4 :: Unable to vote with praguepainter.  undefined method `regenerate_key' for Bitcoin::OpenSSL_EC:Module

Any idea what I'm doing wrong?

I see this bot votes for everybody, maybe I should use a more targetted bot ? Just wading into the world of curation bots .. 
Also I dont understand bandwidth issues .. is there a way to allow the bot to only vote when I have enough bandwidth? 

Many thanks
properties (22)
post_id33,110,934
authorpraguepainter
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180216t175950638z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-02-16 17:59:54
last_update2018-02-16 17:59:54
depth1
children3
net_rshares0
last_payout2018-02-23 17:59:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length563
author_reputation138,038,426,460
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@inertia ·
Try:

`bundle update`
properties (22)
post_id33,112,952
authorinertia
permlinkre-praguepainter-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180216t181216098z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-02-16 18:12:15
last_update2018-02-16 18:12:15
depth2
children2
net_rshares0
last_payout2018-02-23 18:12:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length21
author_reputation227,335,189,892,062
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@praguepainter ·
Thanks for your time
I couldnt update ffi

Installing ffi 1.9.21 (was 1.9.18) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

I'll keep fooling around with it .. .
I'm a noob so perhaps I need a fresh install
Or do it on Jesse on a Pi2 ...
properties (22)
post_id33,115,171
authorpraguepainter
permlinkre-inertia-re-praguepainter-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180216t182522936z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-02-16 18:25:30
last_update2018-02-16 18:25:30
depth3
children0
net_rshares0
last_payout2018-02-23 18:25:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length282
author_reputation138,038,426,460
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@praguepainter ·
I managed to update by installing libdevffi
still have the regenerate_key error:
Unable to vote with praguepainter. undefined method `regenerate_key' for Bitcoin::OpenSSL_EC:Module
properties (22)
post_id33,137,077
authorpraguepainter
permlinkre-inertia-re-praguepainter-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180216t204544963z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-02-16 20:45:48
last_update2018-02-16 20:45:48
depth3
children0
net_rshares0
last_payout2018-02-23 20:45:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length180
author_reputation138,038,426,460
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@htooms ·
Hey @intertia
 LTNS in the chatroom.   

I just got the bot running since you changed it adding "gems".  I did a fresh install and there have been errors.
 
It works, recognizes votes that need to be made. Then when it comes time to vote it gives me the following  error.

> {:error_perser_exception=>#<NoMethodError: undefined method `[]' for nil:NilClass>, :original_response=>{"jsonrpc"=>"2.0", "error"=>{"code"=>-32003, "message"=>"Unable to acquire database lock"}, "id"=>562}}

Any  quick solutions come to mind?
properties (22)
post_id41,914,100
authorhtooms
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180403t185058712z
categoryradiator
json_metadata"{"app": "steemit/0.1", "users": ["intertia"], "tags": ["radiator"]}"
created2018-04-03 18:51:00
last_update2018-04-03 18:51:00
depth1
children2
net_rshares0
last_payout2018-04-10 18:51:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length518
author_reputation31,300,808,502,604
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@inertia ·
$0.74
That should be an intermittent error.  You could also change nodes by editing `drphil.yml`:

```yaml
:chain_options:
  :chain: steem
  :url: https://api.steemit.com
```

... to something else like:


```yaml
:chain_options:
  :chain: steem
  :url: https://gtg.steem.house:8090
```

Or pick a different node from this list: https://geo.steem.pl/
πŸ‘  
properties (23)
post_id41,914,707
authorinertia
permlinkre-htooms-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180403t185606898z
categoryradiator
json_metadata"{"app": "steemit/0.1", "links": ["https://geo.steem.pl/"], "tags": ["radiator"]}"
created2018-04-03 18:56:06
last_update2018-04-03 18:56:06
depth2
children1
net_rshares245,689,342,387
last_payout2018-04-10 18:56:06
cashout_time1969-12-31 23:59:59
total_payout_value0.612 SBD
curator_payout_value0.129 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length344
author_reputation227,335,189,892,062
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@htooms · (edited)
Thanks I will try that.  Excellent customer service btw.!!! as always. 


More info:  
You said that the bundler can ask for sudo permission if needed. It didn't. 
At first I ran it with sudo (broke the install as you said it would) trashed that VM

Next I read the errors.  Gave it read write permission for the directories in could not write to

one: var/lib/gems/

the other was: usr/local/bin

Since the bot is the only thing running - I have no security issues in giving those permissions.

It worked after doing those things.   Your work is really interesting. I used to do a lot of programming and would love to see what is under the hood with ruby and gems.  Finding the time...

I looked through all my phones and found an installed discord.  I was not able to find you or Fyrst, but I will get back to you.  Cheers!
properties (22)
post_id41,917,051
authorhtooms
permlinkre-inertia-re-htooms-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180403t191633253z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-04-03 19:16:45
last_update2018-04-04 04:24:45
depth3
children0
net_rshares0
last_payout2018-04-10 19:16:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length825
author_reputation31,300,808,502,604
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@cyclope ·
$0.90
Inertia, I am new in this of the healing bots, I have a problem and it is difficult for me to reach the solution. Once inside the directory / drphil $ I try with $ bundle install and the following happens >>>>

~~~
Installing ffi 1.9.23 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.1 extconf.rb
Cannot allocate memory - /usr/bin/ruby2.1 extconf.rb 2>&1

Gem files will remain installed in /var/lib/gems/2.1.0/gems/ffi-1.9.23 for
inspection.
Results logged to
/var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/ffi-1.9.23/gem_make.out

An error occurred while installing ffi (1.9.23), and Bundler cannot
continue.
Make sure that `gem install ffi -v '1.9.23'` succeeds before bundling.

In Gemfile:
  radiator was resolved to 0.4.1, which depends on
    ffi

~~~

I can not solve, I tried update and aupgrade Bundle. Thank you so much.
πŸ‘  ,
properties (23)
post_id48,097,818
authorcyclope
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180511t212936368z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-05-11 21:29:42
last_update2018-05-11 21:29:42
depth1
children2
net_rshares196,562,926,031
last_payout2018-05-18 21:29:42
cashout_time1969-12-31 23:59:59
total_payout_value0.679 SBD
curator_payout_value0.221 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length897
author_reputation199,526,231,496,888
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@inertia ·
$1.05
The bot doesn't require that much memory, but it's possible that bundler needs a bit more in the beginning.  Maybe you can enable a temporary swap to get it to bundle:

```bash
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=4000
sudo chmod 600 /var/swap.img
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
```
πŸ‘  , ,
πŸ‘Ž  
properties (23)
post_id48,100,534
authorinertia
permlinkre-cyclope-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180511t215507476z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-05-11 21:55:09
last_update2018-05-11 21:55:09
depth2
children1
net_rshares229,067,954,134
last_payout2018-05-18 21:55:09
cashout_time1969-12-31 23:59:59
total_payout_value0.793 SBD
curator_payout_value0.256 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length319
author_reputation227,335,189,892,062
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (4)
@cyclope ·
$1.50
Thank you very much for the quick answer. I have made the suggested steps but the same problem persists.
πŸ‘  , ,
properties (23)
post_id48,192,542
authorcyclope
permlinkre-inertia-re-cyclope-re-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180512t123925412z
categoryradiator
json_metadata"{"app": "steemit/0.1", "tags": ["radiator"]}"
created2018-05-12 12:39:27
last_update2018-05-12 12:39:27
depth3
children0
net_rshares324,781,300,687
last_payout2018-05-19 12:39:27
cashout_time1969-12-31 23:59:59
total_payout_value1.129 SBD
curator_payout_value0.372 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length104
author_reputation199,526,231,496,888
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (3)
@cyclope ·
$1.08
@inertia, drphil was working perfectly, implicitly stopped working a day ago, and I do not find the problem. In "Drphil.log" in the last lines it says:
`` `
W, [2018-06-01T17: 09: 33.410252 # 881] WARN -: condenser_api.get_ops_in_block :: Removing misconfigured node from failover urls: https://rpc.curiesteem.com, retrying ...
W, [2018-06-01T17: 09: 37.955758 # 881] WARN -: Failing over to https://rpc.buildteam.io ...
W, [2018-06-01T17: 09: 41.380394 # 881] WARN -: condenser_api.get_ops_in_block :: Removing misconfigured node from failover urls: https://rpc.buildteam.io, retrying ...
W, [2018-06-01T17: 09: 44.681753 # 881] WARN -: Failing over to https://rpc.steemviz.com ...
W, [2018-06-01T17: 09: 48.577660 # 881] WARN -: condenser_api.get_ops_in_block :: Removing misconfigured node from failover urls: https://rpc.steemviz.com, retrying ...
W, [2018-06-01T17: 09: 49.980104 # 881] WARN -: Failing over to https://steemd.minnowsupportproject.org ...
W, [2018-06-01T17: 09: 51.296818 # 881] WARN -: condenser_api.get_ops_in_block :: Removing misconfigured node from failover urls: https://steemd.minnowsupportproject.org, retrying ...
E, [2018-06-01T17: 09: 53.846700 # 881] ERROR -: Health check failure for https://rpc.steemliberator.com: # <OpenURI :: HTTPError: 502 Bad Gateway>
E, [2018-06-01T17: 09: 55.027698 # 881] ERROR -: Health check failure for https://seed.bitcoiner.me: # <OpenURI :: HTTPError: 404 Not Found>
W, [2018-06-01T17: 09: 57.943636 # 881] WARN -: Failing over to https://api.steem.house ...
`` `

I have changed to other active nodes in the "Drphil.yml" configuration, in:
`` `
: chain_options:
  : chain: steem
  : url: https://api.steemit.com
`` `

Still, it still does not work.

I would appreciate a help.
πŸ‘  
properties (23)
post_id51,288,263
authorcyclope
permlinkre-inertia-drphilrb-voting-bot-gem-update-and-bug-fixes-20180601t212357102z
categoryradiator
json_metadata"{"tags": ["radiator"], "app": "steemit/0.1", "users": ["inertia"]}"
created2018-06-01 21:23:57
last_update2018-06-01 21:23:57
depth1
children0
net_rshares289,563,156,859
last_payout2018-06-08 21:23:57
cashout_time1969-12-31 23:59:59
total_payout_value0.809 SBD
curator_payout_value0.269 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,743
author_reputation199,526,231,496,888
root_title"drphil.rb - Voting Bot - gem update and bug fixes"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)