diff options
| author | 2023-09-04 20:25:47 +0100 | |
|---|---|---|
| committer | 2023-09-04 20:25:47 +0100 | |
| commit | a0ac0ec33c12026b75e7602f3b38a80aa40eaa6c (patch) | |
| tree | 9c1d2e68d89a1de86a47b06e4d3e3f6f1176a20e | |
| parent | Remove old GINO logger config (diff) | |
Remove database connection from bot setup hook
| -rw-r--r-- | metricity/bot.py | 2 | 
1 files changed, 0 insertions, 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:  |