You are viewing a single comment's thread from:

RE: Simple Hive App on a $7 SBC 3: Block Stream and Discord Webhook

in Programming & Dev4 years ago

Quick addition: I added a message every 10 minutes (200 blocks) to make it easier to see if it's still running

if not (block['block_num'] % 200):
    webhook.send(f'Finished block `{block["block_num"]}`', username='Orange Pi')

as well as a < 2000 character limit for Discord messages.