Post Promoter JavaScript Voting Bot - Update 4

in #utopian-io5 years ago

I'm back again with some great new updates to the Post Promoter voting bot software! It is now powering bots with over 4 Million Steem Power combined!

Anyway, here are the latest developments:

Option to auto-withdraw funds after each round

Previously funds could only be automatically withdrawn from the bot account once per day, but now you can set the "frequency" option to "round_end" to distribute them after each bidding window!

"auto_withdrawal": {
    "active": true,
    "accounts": [
      { "name": "account1", "stake": 8000 },
      { "name": "account2", "stake": 2000 }
    ],
    "frequency": "round_end"
}

Automatically retry failed transactions

For some reasons transactions were sometimes randomly failing with a "max_block_age" error. If anyone knows what that means or why it happens please let me know! In any case I have set it up so that it will retry failed transactions (votes, withdrawals, etc) one time at which point the transaction seems to go through successfully.

// Try again one time on error
      if(retries < 1)
        sendVote(bid, retries + 1);
      else {
        utils.log('============= Vote transaction failed two times for: ' + bid.permlink + ' ===============');
      }

Auto-withdrawal of liquid post rewards

If the auto withdrawal feature is enabled it will automatically send out all of the liquid STEEM and/or SBDs in the account daily or after every bidding round. This is great if you want to automatically pay out earnings from the bot to different accounts, but the problem is that if your bot's posts get any upvotes those rewards would be auto-withdrawn as well.

Now you can specify a separate account which will automatically get sent all liquid post rewards as soon as they are claimed:

"post_rewards_withdrawal_account": "withdraw_liquid_post_rewards_to_account",

Added a price feed setting to properly value SBD and STEEM bids

Until this update the bot software valued SBD and STEEM bids the same. This means that someone who sent a 1 SBD bid would get the same vote as someone who sent a 1 STEEM bid. This was clearly not good as 1 SBD is now worth 5X what 1 STEEM is worth. It was a highly requested change and now it's done!

To use it, simply set the "price_feed_url" config setting to a URL that sends the current STEEM and SBD price in USD. You are free to use the one I set up at: https://postpromoter.com/api/prices

"price_feed_url": "https://postpromoter.com/api/prices"

Obviously this is only necessary if your bot accepts both STEEM and SBDs.

Thanks for your support!

I wanted to thank everyone who has helped and supported me in creating this software. I love that it has been able to help so many people get their content promoted. Please stay tuned for more updates in the coming weeks!

Links to relevant commits:
Added price feed setting to value SBD & STEEM bids based on their pri…
Added log for retry of vote failing and fixed issue with withdrawals
Added feature to auto-withdraw liquid post rewards to an account
Added option to withdraw funds after each bidding round



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://busy.org/@yabapmatt/post-promoter-javascript-voting-bot-update-4