You are viewing a single comment's thread from:

RE: Rewardo STEEM Bot v0.0.1 - Open Source NodeJS Auto Reward Claim Script

in #steemdev7 years ago

Nice script. But it's not claiming SBD rewards. Here's a fix.
Change this:

      if (rvnum > 0) {
        // output console rewards found
        console.log("Pending Rewards Found! Claiming Now!");
        // claim rewards call
        steem.broadcast.claimRewardBalance(wif, account, '0.000 STEEM', '0.000 SBD', rv, function (err, result) {

to this:

      if (rvnum > 0 || rd > 0) {
        // output console rewards found
        console.log("Pending Rewards Found! Claiming Now!");
        // claim rewards call
        steem.broadcast.claimRewardBalance(wif, account, '0.000 STEEM', rd, rv, function (err, result) {
Sort:  

..! Hell yeah man. Well done.

I just realized this after you mentioned it. Thank you for helping!

My pleasure. I've been digging into steem-js lately, it's cool stuff. Playing around with it and testing scripts :)