Open tomriddle54 opened 6 years ago
Hmm, maybe the compiler can't handel your indentation.
I personally employ getAccountHistory instead of streamOperations and a database to prevent double actions. getAccountHistory is way more reliable(and SteemJS is absolute junk)
Would this be a problem caused by 8fbbef9336efe6b52026408dd86c11a82fd180fc ? @p0o Lol, looking at that commit closely now, naughty naughty fix :p
Can you send the link of the post that the code above put 10 comments?
@TwinkieWInkie You are right, I remember that sometimes after resetting the streamOperations I would see repeated results. However, I say that moving to getAccountHistory
is an overkill and would not be a general answer to all use cases.
I think we can change streamOperations
to streamBlock
to keep the lastest block number somewhere in SteemBot internally to avoid repeated triggers. I'm a little busy these days so if you like to submit a PR with this approach I would be more than happy.
@p0o Seems like a worty challenge, I'll see if I can make some time for that :)
Considering implementing streamBlockNumber/getBlock.
Isn't the blockNumber included in the data received from streamBlock?
Probably. But if it falls behind due to an error, we have an easier way to loop through the missing blocks with this method
I have Created a Bot for an introduction but sometimes its working fine and some time commenting more than 1 time and he has done 10 comments in one post don't know whats wrong here can any one help here is the code