Просмотр исходного кода

fixing loading problems with cogs

BaumSplitter41 4 месяцев назад
Родитель
Сommit
4881488c9b
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      VPD_BOT/main.py

+ 3 - 2
VPD_BOT/main.py

@@ -127,8 +127,8 @@ bot = commands.Bot(
     debug_guilds=debug_guilds_up if debug_guilds_up else None
 )
 
-async def load_extensions():
-    cogs_dir = "cogs"
+def load_extensions():
+    cogs_dir = "./cogs"
     if not os.path.exists(cogs_dir):
         print(f"Cogs directory '{cogs_dir}' not found!")
         return
@@ -635,5 +635,6 @@ async def help_cache(
 
 #---------------------------------#
 #Run function
+load_extensions()
 bot.run(token)
 #---------------------------------#