Edit bot.py

This commit is contained in:
ザカリアス・ウィリアム・ポージー 2025-05-08 03:33:00 +09:00
parent 58cef2b884
commit d65ba20b09

2
bot.py
View File

@ -21,7 +21,7 @@ bot = commands.Bot(command_prefix="/", intents=intents)
# Load cog files dynamically
async def load_cogs():
for filename in os.listdir("home/server/wdiscordbotserver/cogs/"):
for filename in os.listdir("/home/server/wdiscordbotserver/cogs/"):
if filename.endswith(".py"):
try:
await bot.load_extension(f"cogs.{filename[:-3]}")