mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
this is why you actually check diffs
This commit is contained in:
parent
659bdf5f94
commit
9004ce3311
4
bot.py
4
bot.py
@ -9,7 +9,7 @@ import functools
|
||||
from discord import app_commands
|
||||
|
||||
# Load environment variables
|
||||
load_dotenv()
|
||||
load_dotenv("/home/server/keys.env")
|
||||
discord_token = os.getenv("DISCORD_TOKEN")
|
||||
|
||||
# Ensure token is set
|
||||
@ -74,7 +74,7 @@ def catch_exceptions(func):
|
||||
|
||||
# Load cog files dynamically
|
||||
async def load_cogs():
|
||||
for filename in os.listdir("cogs/"):
|
||||
for filename in os.listdir("/home/server/wdiscordbotserver/cogs/"):
|
||||
if filename.endswith(".py"):
|
||||
try:
|
||||
await bot.load_extension(f"cogs.{filename[:-3]}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user