From c4232e844db6f48880074aa5ff0c6115baf672dc Mon Sep 17 00:00:00 2001 From: pt2302 <1553279+pt2302@users.noreply.github.com> Date: Fri, 29 Aug 2025 15:57:12 -0400 Subject: [PATCH] Fix H18 timeout by keeping event loop running after startup --- bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 698989a..a058fe8 100755 --- a/bot.py +++ b/bot.py @@ -11,7 +11,6 @@ import pytz import sentry_sdk -import tornado from client_wrapper import ClientWrapper from constants import ( @@ -1646,10 +1645,11 @@ async def async_main(): await bot.startup() -def main(): +async def main(): """main function for bot command""" - tornado.ioloop.IOLoop.current().run_sync(async_main) + await async_main() + await asyncio.Event().wait() if __name__ == "__main__": - main() + asyncio.run(main())