RE: Steem Rat Voter - Upvote and Resteem bot 0.1 Beta

You are viewing a single comment's thread from:

Steem Rat Voter - Upvote and Resteem bot 0.1 Beta

in steemrat •  7 years ago 

The bot had a little hickup when it got a 0.001SBD Memo from @resteembot.
This happened because the script missed an account to send donations, and tried to send it back. Resteembot have the same problem, and sent it back with a new Memo, the two bots causing a loop.

Lucky I tested this scenario,
fixed, all working now!

🐀@steemrat

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Yeah. When I noticed it, you already fixed it.
I am now considering writing a limit of how many times my bot would refund the same transaction. If it is more than 3 times, just take the money.

I just need to find the time to write it. I am very busy lately.

Probably not often this happen, but better safe than sorry.
It was quite a sight watching the wallet, both bots complaining in order :)

Just add in a code like this:

  •   if(retries < 2)
     setTimeout(function() { sendVote(bid, retries + 1, callback); }, 10000);
     else {
     utils.log('============= Vote transaction failed three times for: @' + bid.author + '/' + bid.permlink + '       Bid Amount: ' + bid.amount + ' ' + bid.currency + ' ===============');
     logFailedBid(bid, err);
     }
    

I did however raise the refund limit to 0.002 so the memo advertizers don't get a refund.

raising the limit is actually the smarter idea. I like it! I'll probably do that too.

A lot easier plus it will add to the bottom line over time :)

Are you adding to my bottom line? What happened? I have not sent a memo now I believe?