mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
there is, infact a reason for the path for the internal sercer
This commit is contained in:
parent
104fdd88a4
commit
73a67fef58
2
bot.py
2
bot.py
@ -21,7 +21,7 @@ bot = commands.Bot(command_prefix="/", intents=intents)
|
||||
|
||||
# Load cog files dynamically
|
||||
async def load_cogs():
|
||||
for filename in os.listdir("./cogs"):
|
||||
for filename in os.listdir("home/server/wdiscordbot/cogs/"):
|
||||
if filename.endswith(".py"):
|
||||
try:
|
||||
await bot.load_extension(f"cogs.{filename[:-3]}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user