fix: made the save directory be set properly by default

This commit is contained in:
Seaswimmer 2023-07-31 23:17:17 -04:00
parent 435d67b2dc
commit 829a01a6ed
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -1,7 +1,7 @@
import asyncio import asyncio
import re import re
import discord import discord
from os import path, makedirs from os import path, makedirs, sep
from yt_dlp import YoutubeDL from yt_dlp import YoutubeDL
from redbot.core import commands, checks, Config, data_manager from redbot.core import commands, checks, Config, data_manager
@ -10,7 +10,7 @@ class MusicDownloader(commands.Cog):
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=475728338) self.config = Config.get_conf(self, identifier=475728338)
self.config.register_global( self.config.register_global(
save_directory = data_manager.cog_data_path() save_directory = data_manager.cog_data_path() + f"{sep}MusicDownloader"
) )
@commands.command() @commands.command()