From 31410c6d7b2f5fc5f94f56f30d521ba503d02318 Mon Sep 17 00:00:00 2001 From: AI Coding Agent Cog Date: Wed, 4 Jun 2025 14:58:33 -0600 Subject: [PATCH] Fix fuckass double load --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 413a6bc..b6622cd 100644 --- a/main.py +++ b/main.py @@ -130,12 +130,12 @@ class MyBot(commands.Bot): await load_all_cogs(self, skip_cogs=self.ai_cogs_to_skip) log.info(f"Cogs loaded in setup_hook. Skipped: {self.ai_cogs_to_skip or 'None'}") - # Load the lockdown cog - try: - await self.load_extension("cogs.lockdown_cog") - log.info("Lockdown cog loaded successfully.") - except Exception as e: - log.exception(f"Failed to load lockdown cog: {e}") + + # Load the lockdown cog separately if needed + # Note: load_all_cogs already loads all cogs in the directory. The + # manual load below caused the cog to be loaded twice resulting in an + # ExtensionAlreadyLoaded error. + # await self.load_extension("cogs.lockdown_cog") # --- Share GurtCog, ModLogCog, and bot instance with the sync API --- try: