You are viewing a single comment's thread from:
RE: Notification bot for Steem in 30 lines of code
Can you please explain what this does? The number has me confused.
for c in steem.stream_comments(start=1898900):
Can you please explain what this does? The number has me confused.
for c in steem.stream_comments(start=1898900):
steem.stream_comments()is a generator that returns all comments when they come in.The
startparameter just tells the starting block. If you leave it, it will start with the most recent block.This way, you can store the block number and continue your bot where you have left after an unexpected shutdown.