From 39ece5a8b664ed8be81402e89e9ddc3db3b72e66 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Fri, 10 Feb 2023 00:29:13 +0000 Subject: BotBase.load_extensions no longer needs to be ran in a task --- metricity/bot.py | 4 ++-- 1 file 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.""" -- cgit v1.2.3