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