From 063972ac9a22a30f852474f6c358f409cc534fc0 Mon Sep 17 00:00:00 2001 From: nihonium Date: Sun, 14 Aug 2022 22:33:50 +0300 Subject: [PATCH] main fix --- bot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 1228976..379fa7a 100755 --- a/bot.py +++ b/bot.py @@ -55,9 +55,7 @@ async def main(): print(j) while True: try: - loop = asyncio.new_event_loop() - #asyncio.set_event_loop(loop) - loop.run_until_complete(main()) + asyncio.run(main()) except KeyboardInterrupt: break