diff options
author | 2023-02-10 00:29:13 +0000 | |
---|---|---|
committer | 2023-02-10 00:29:13 +0000 | |
commit | 39ece5a8b664ed8be81402e89e9ddc3db3b72e66 (patch) | |
tree | 66803a8e24ec73696d1b77ac8c255fbcd83dd87f | |
parent | Update botcore module name throughout repo (diff) |
BotBase.load_extensions no longer needs to be ran in a task
-rw-r--r-- | metricity/bot.py | 4 |
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.""" |