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: