fix: added a cog_load function to run create_table

This commit is contained in:
SeaswimmerTheFsh 2023-08-01 22:39:46 -04:00
parent eead3223d1
commit 95b4abd8bb
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 5019678FD9CF50D8

View file

@ -20,8 +20,6 @@ class MusicDownloader(commands.Cog):
def create_table(self):
data_path = str(data_manager.cog_data_path()) + f"{os.sep}MusicDownloader"
if not os.path.isdir(data_path):
os.makedirs(data_path)
db_path = os.path.join(data_path, "database.db")
if not os.path.isfile(db_path):
con = sqlite3.connect(db_path)