You are viewing a single comment's thread from:

RE: Notification bot for Steem in 30 lines of code

in #steem9 years ago

Can you please explain what this does? The number has me confused.

for c in steem.stream_comments(start=1898900):

Sort:  

steem.stream_comments() is a generator that returns all comments when they come in.
The start parameter 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.

Coin Marketplace

STEEM 0.08
TRX 0.29
JST 0.035
BTC 103914.44
ETH 3448.37
USDT 1.00
SBD 0.52