From 313221a2cfd6e50d741915b8adb458d77e78bde8 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 8 Jan 2023 01:05:21 +0400 Subject: [PATCH] Improve code --- mirrortea | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mirrortea b/mirrortea index 9c2fe2d..3ba27e6 100755 --- a/mirrortea +++ b/mirrortea @@ -3,8 +3,11 @@ import asyncio from nio import AsyncClient -async def main(): +def main(): + asyncio.get_event_loop().run_until_complete(loop()) + +async def loop(): print(123) if __name__ == '__main__': - asyncio.get_event_loop().run_until_complete(main()) + main()