From e1d0f76f1ef0fd722d081972a4204e58ef561600 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 22:13:36 -0400 Subject: [PATCH] fix: made the cog create the required table on load --- musicdownloader/musicdownloader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index e360620..0a2ca85 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -47,6 +47,9 @@ class MusicDownloader(commands.Cog): user_id, reason = result raise self.UserBlacklisted(reason) + async def cog_load(self): + self.create_table() + @commands.command() @checks.is_owner() async def change_data_path(self, ctx: commands.Context, *, data_path: str = None):