You are viewing a single comment's thread from:

RE: Steemit post Bot like @wang for introduceyourself

in #hacking8 years ago

Hello @soupernerd,

you just need to set a start time and check with a "if", if time elapsed is <20

Example: http://stackoverflow.com/questions/3620943/measuring-elapsed-time-with-the-time-module

start_time = time.time()
elapsed_time = time.time() - start_time

Sort:  

Hi seagul,

What I was actually wondering is this. Steemit seems to throw an error if you try to comment too fast.

Example of the steem error:

"(now - auth.last_post) > STEEMIT_MIN_REPLY_INTERVAL: You may only comment once every 20 seconds"

Is there a way to check against steemit itself, if your last post was within the last 20 seconds? So instead of just checking against elapsed time generally, checking against whatever it is steemit is checking?