From 6e642ff7fc7c19e9a55adcbb88145ac0846844e9 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Thu, 6 Jun 2024 12:21:53 -0400 Subject: [PATCH] ffi(sdk): update `bot.py` example Signed-off-by: Yuki Kishimoto --- bindings/nostr-sdk-ffi/bindings-python/examples/bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/nostr-sdk-ffi/bindings-python/examples/bot.py b/bindings/nostr-sdk-ffi/bindings-python/examples/bot.py index f6e7850fe..3dd6f6d0c 100644 --- a/bindings/nostr-sdk-ffi/bindings-python/examples/bot.py +++ b/bindings/nostr-sdk-ffi/bindings-python/examples/bot.py @@ -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())