Skip to content

Commit 6e642ff

Browse files
committed
ffi(sdk): update bot.py example
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 0c4e345 commit 6e642ff

File tree

1 file changed

+3
-0
lines changed
  • bindings/nostr-sdk-ffi/bindings-python/examples

1 file changed

+3
-0
lines changed

bindings/nostr-sdk-ffi/bindings-python/examples/bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ async def handle_msg(self, relay_url, msg):
6767
# To handle notifications and continue with code execution, use:
6868
# asyncio.create_task(client.handle_notifications(NotificationHandler()))
6969

70+
# Keep up the script (if using the create_task)
71+
# while True:
72+
# await asyncio.sleep(5)
7073

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

0 commit comments

Comments
 (0)