From a0ac0ec33c12026b75e7602f3b38a80aa40eaa6c Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 4 Sep 2023 20:25:47 +0100 Subject: Remove database connection from bot setup hook --- metricity/bot.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/metricity/bot.py b/metricity/bot.py index 0c0fa38..d4b9b30 100644 --- a/metricity/bot.py +++ b/metricity/bot.py @@ -6,7 +6,6 @@ from pydis_core import BotBase from pydis_core.utils import logging from metricity import exts -from metricity.database import connect log = logging.get_logger(__name__) @@ -24,7 +23,6 @@ class Bot(BotBase): """Connect to db and load cogs.""" await super().setup_hook() log.info("Metricity is online, logged in as %s", self.user) - await connect() await self.load_extensions(exts) async def on_error(self, event: str, *_args, **_kwargs) -> None: -- cgit v1.2.3