RE: Follower Rewards

You are viewing a single comment's thread from:

Follower Rewards

in payouts •  7 years ago 

Agreed. I'm working on updating so it only makes payments to users that were active in the past 7 days.

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:  
  ·  7 years ago (edited)

Here's one way to go about it using lastvote time with Steem Python. You could probably go deeper by checking last comment as well but think lastvote is a good determinant of an active user.

import sys
import time
import datetime
from steem import Steem
from steem.account import Account
now=datetime.datetime.utcnow() 
my_nodes = ['https://rpc.buildteam.io','https://rpc.steemliberator.com','https://steemd.minnowsupportproject.org']
steem = Steem(my_nodes)
account = Account('money-dreamer',steem)
lastvote = account['last_vote_time']
dt=datetime.datetime.strptime(lastvote, "%Y-%m-%dT%H:%M:%S")
dif=now-dt
if dif.days < 3:
    <execute script block>

Please, excuse the lack of comments but am glad to answer any questions.

I'm using JavaScript:

https://github.com/AdamCox9/Steemit-Follow-Bot

Thanks!

That will be nice

It will be double nice?

That will be nice

Thank you for the $0.01 SBD @moneydreamer . Much appreciated. Every little helps. ☺👍