a
This commit is contained in:
parent
817e405347
commit
a7400a79d3
20
gurt_bot.py
20
gurt_bot.py
@ -54,16 +54,16 @@ async def main():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
async with bot:
|
async with bot:
|
||||||
# Load the gurt cog and profile updater cog
|
# List of cogs to load
|
||||||
try:
|
cogs = ["cogs.gurt_cog", "cogs.profile_updater_cog"]
|
||||||
await bot.load_extension("cogs.gurt_cog")
|
for cog in cogs:
|
||||||
print("Successfully loaded gurt_cog")
|
try:
|
||||||
await bot.load_extension("cogs.profile_updater_cog")
|
await bot.load_extension(cog)
|
||||||
print("Successfully loaded profile_updater_cog")
|
print(f"Successfully loaded {cog}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error loading cog: {e}")
|
print(f"Error loading {cog}: {e}")
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
# Start the bot
|
# Start the bot
|
||||||
await bot.start(TOKEN)
|
await bot.start(TOKEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user