Skip to content

Commit

Permalink
ffi(sdk): update bot.py example
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Jun 6, 2024
1 parent 0c4e345 commit 6e642ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/nostr-sdk-ffi/bindings-python/examples/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ async def handle_msg(self, relay_url, msg):
# To handle notifications and continue with code execution, use:
# asyncio.create_task(client.handle_notifications(NotificationHandler()))

# Keep up the script (if using the create_task)
# while True:
# await asyncio.sleep(5)

if __name__ == '__main__':
asyncio.run(main())

0 comments on commit 6e642ff

Please sign in to comment.