فهرست منبع

deleting the print in the log channel

BaumSplitter41 4 ماه پیش
والد
کامیت
f04b6a8c0d
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      VPD_BOT/main.py

+ 0 - 4
VPD_BOT/main.py

@@ -132,8 +132,6 @@ bot = commands.Bot(
 #Loading Cogs
 def load_extensions():
     cogs_dir = "./cogs"
-    if bot.guilds:
-        channel = discord.utils.get(bot.guilds[0].channels, id=int(channel_log))
     if not os.path.exists(cogs_dir):
         print(f"Cogs directory '{cogs_dir}' not found!")
         return
@@ -143,10 +141,8 @@ def load_extensions():
             try:
                 bot.load_extension(f"cogs.{cog_list}")
                 print(f"Loaded cog: {cog_list}")
-                channel.send(f"Loaded Cogs:{cog_list}")
             except Exception as e:
                 print(f"Failed to load cog {cog_list}: {e}")
-                channel.send(f"Failed to load cog {cog_list}: {e}")
 
 class Admin(commands.Cog):
     def __init__(self, bot):