From 60e4cfee9cda59392855ffb9ca78d9363b3d4292 Mon Sep 17 00:00:00 2001 From: Tofik Denianto <77754555+tofikdn@users.noreply.github.com> Date: Sat, 30 Oct 2021 02:49:37 +0700 Subject: [PATCH] DeprecationWarning --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 02df684..c85d35f 100644 --- a/main.py +++ b/main.py @@ -14,5 +14,6 @@ async def mulai_bot(): await bot.stop() -loop = asyncio.get_event_loop() +loop = asyncio.new_event_loop() +asyncio.set_event_loop(loop) loop.run_until_complete(mulai_bot())