Create Post Promoter JavaScript Full Voting Bot 2018

in #utopian-io8 years ago

An.gif

I can't trust it's been a month since my last commitment present about updates on the Post Promoter voting bot programming! There have been a great deal of updates and new highlights included that time and I've been busy to the point that it's elusive time to post about them. However, I have some time today around evening time, so get settled in light of the fact that it will be a long one!

Reinforcement Mode

Any individual who has run any imperative programming administrations knows you should dependably run a reinforcement. The majority of the best Steem witnesses have reinforcement servers (at any rate I hope...) and the same ought to be valid for the huge voting bots.

So to that end I have included another setting in the config.json document called "backup_mode". On the off chance that this is set to genuine then the bot programming will run and take after the record history and monitor acknowledged offers and the greater part of that, yet it won't really communicate any exchanges. That implies it won't vote, it won't discount, it won't remark, and so forth.

The purpose of this, as the setting name infers, is to enable bot proprietors to run a reinforcement variant of their bot in the event that they wish. Along these lines if the fundamental bot server goes down for any reason, you can simply switch the reinforcement server out of reinforcement mode and it assumes control right the latest relevant point of interest.

Resteem Option

Some bot proprietors asked for that their bots consequently resteem posts that have an offered over a predefined sum. I have added the accompanying setting to help that:

"min_resteem": 2,/If an offer is sent for this sum or all the more then the bot will resteem the post

In the case over any offers that come in for 2 SBD/STEEM or more, the bot will naturally resteem those posts.

Offer and Delegation Confirmation Messages

It is presently conceivable to have the bot react with a 0.001 SBD/STEEM exchange update to tell the sender of an offer that the offer was prepared and acknowledged by the bot. Moreover bots that compensation out income to delegators can be set to react with a 0.001 SBD exchange notice when another designation comes in to let the delegator know their assignment was acknowledged and prepared and that they will begin getting payouts in the following withdrawal time frame.

You can set either of these by adding the accompanying properties to the "transfer_memos" protest in the config.json document:

< "transfer_memos": {

...

"bid_confirmation": "Your offer is affirmed. You will get your vote when the bot achieves 100% voting power. Much obliged to you!",

"assignment": "Thank you for your appointment of {tag} SP! You will begin to get payouts after the following withdrawal."

}

Auto pull back fluid STEEM post rewards

There is a setting called "post_rewards_withdrawal_account" in which you can indicate a record to consequently send any fluid post prizes to. So if the bot proprietor makes a few posts from the bot record or individuals upvote the bot's remarks, at that point when those prizes are paid out the fluid, non-SP part of the prizes can be consequently exchanged out so they don't get incorporated into the auto-withdrawal of the bot's profit.

When I at first actualized the element I accepted that fluid post payouts were dependably in SBD, however I didn't consider that if the obligation proportion went more than 2% - as it has quite recently done as of late - that fluid STEEM prizes would be paid out also.

So now the bot programming has been refreshed to pull back fluid STEEM remunerates and in addition SBD to the "post_rewards_withdrawal_account" on the off chance that one is indicated.

Capacity to set a recipient for SP in the bot account

At the point when the product is set to pay to delegators, it parts the predetermined segment of the payouts among the delegators in light of the measure of SP they have each assigned, yet it didn't consider any SP specifically in the bot account. So if the bot account had any SP in it that wasn't assigned out elsewhere, at that point the profit owing to that SP would be part up among alternate delegators.

Presently you can determine a recipient account who ought to get the payout for the SP in the bot account by utilizing the "supersedes" property in the "$delegators" account question in the "auto_withdrawal" segment of the config document:

"accounts": [

{

"name": "$delegators",

"stake": 8000,

"abrogates": [

{ "name": "bot_account_name", "recipient": "beneficiary_account" }

]

},

In the case over, the name of the bot account is indicated as an abrogate which advises the product to pay out the predefined bit of profit in light of the SP in the bot record to the record recorded as the recipient. Thusly bot proprietors would now be able to get their offer of the payout for the SP in the bot account and don't need to continually control it down or assign it out.

A debt of gratitude is in order for your help!

There's been a couple of more updates, however it's getting late here and this post is as of now very sufficiently long, so I'll leave those for next time! In case you're interested you can simply check the rundown of confers on the GitHub repo. As dependably I need to likewise thank everybody who has helped and upheld me in making this product. It would be ideal if you stay tuned for more updates in the coming weeks!

Connections to applicable confers:

*Included backup_mode setting

  • Added capacity to set recipient for SP in bot account

  • Added alternative to resteem posts for offers over a specific sum

  • Included offer affirmation and appointment messages

  • Refreshed to pull back fluid STEEM rewards
    @Originalwork

    ccm.gif

Sort:  

This post has received a 0.63 % upvote from @drotto thanks to: @aponkl.

This post received a $0.021 (0.57%) upvote from @upvotewhale thanks to @aponkl! For more information, check out my profile!

Greetings @aponkl! Your post was chosen at random and was resteemed as part of Shareables' campaign. Enjoy your free resteem!

If you wish to stop receiving this comment, please do unfollow us.

By upvoting this notification, you're supporting our campaign in Steemit. For more information about our campaign, click here!

@Shareables, we resteem anything we find shareable. Always strive for quality content. Go on express and harness your blogging potential!

God bless from us @Shareables!

How Cool!

You got a 17.86% upvote from @coolbot courtesy of @aponkl!

Help us grow, delegate today!

This Post has Resteemed to 5800 Followers by Steemit Viral and also shared on Facebook,Twitter and Linkedin

Send 0.05 Steem or 0.05 Steem Dollars to @irfansardar use the URL in the memo

This post was upvoted and resteemed by @resteemr!
Thank you for using @resteemr.


@resteemr is a low price resteem service.
Check what @resteemr can do for you. Introduction of resteemr.

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.105
BTC 65120.31
ETH 1941.58
USDT 1.00
SBD 0.37