mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
Edit bot.py
This commit is contained in:
parent
0b6ce45d4f
commit
113e9969dd
2
bot.py
2
bot.py
@ -98,7 +98,7 @@ def catch_exceptions(func):
|
||||
|
||||
# Load cog files dynamically
|
||||
async def load_cogs():
|
||||
for filename in os.listdir("/home/server/wdiscordbotserver/cogs/"):
|
||||
for filename in os.listdir("cogs"):
|
||||
if filename.endswith(".py"):
|
||||
try:
|
||||
await bot.load_extension(f"cogs.{filename[:-3]}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user