aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--metricity/bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/metricity/bot.py b/metricity/bot.py
index 3430cbd..17aec9c 100644
--- a/metricity/bot.py
+++ b/metricity/bot.py
@@ -3,7 +3,7 @@
import asyncio
from pydis_core import BotBase
-from pydis_core.utils import logging, scheduling
+from pydis_core.utils import logging
from metricity import exts
from metricity.database import connect
@@ -25,7 +25,7 @@ class Bot(BotBase):
await super().setup_hook()
log.info(f"Metricity is online, logged in as {self.user}")
await connect()
- scheduling.create_task(self.load_extensions(exts))
+ await self.load_extensions(exts)
async def on_error(self, event: str, *args, **kwargs) -> None:
"""Log errors raised in event listeners rather than printing them to stderr."""