From 4cb5695855f81fefacbdc96751ba7ae1e7a935d7 Mon Sep 17 00:00:00 2001 From: deflax Date: Tue, 16 Jan 2024 19:23:27 +0200 Subject: [PATCH] start the bot withing asincio event loop --- src/discordbot/discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index acde429..3710a52 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -83,4 +83,4 @@ async def my_task(): counter += 1 # Run the bot with your token -bot.run(bot_token) +asyncio.run(bot.run(bot_token))