fix: made the cog create the required table on load

This commit is contained in:
Seaswimmer 2023-08-01 22:13:36 -04:00
parent 5573ada5fc
commit e1d0f76f1e
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -47,6 +47,9 @@ class MusicDownloader(commands.Cog):
user_id, reason = result user_id, reason = result
raise self.UserBlacklisted(reason) raise self.UserBlacklisted(reason)
async def cog_load(self):
self.create_table()
@commands.command() @commands.command()
@checks.is_owner() @checks.is_owner()
async def change_data_path(self, ctx: commands.Context, *, data_path: str = None): async def change_data_path(self, ctx: commands.Context, *, data_path: str = None):