update path

This commit is contained in:
Mylloon 2021-06-11 11:09:20 +02:00
parent 37a17b8095
commit f6d911b137

View file

@ -10,7 +10,7 @@ customPrefix = environ['PREFIX']
client = commands.Bot(command_prefix = customPrefix, case_insensitive = True, intents = discord.Intents.all())
slash = SlashCommand(client, sync_commands = True)
for file in listdir("src/cogs"):
for file in listdir("cogs"):
if file.endswith(".py") and file.startswith("-") == False:
client.load_extension(f"cogs.{file[:-3]}")
print("Terminé !")