diff --git a/run_femdom_teto_bot.py b/run_femdom_teto_bot.py index bd78133..5a71f7e 100644 --- a/run_femdom_teto_bot.py +++ b/run_femdom_teto_bot.py @@ -99,8 +99,17 @@ class FemdomTetoBot(commands.Bot): # log.exception("CRITICAL: Failed to setup moderation log table in setup_hook.") # Load only the specific cogs for this bot - await self.load_extensions(*FEMDOM_TETO_COGS) - log.info(f"Specific cogs loaded in setup_hook: {FEMDOM_TETO_COGS}") + for cog_extension in FEMDOM_TETO_COGS: + try: + await self.load_extension(cog_extension) + log.info(f"Successfully loaded cog: {cog_extension}") + except commands.ExtensionAlreadyLoaded: + log.info(f"Cog already loaded: {cog_extension}") + except commands.ExtensionNotFound: + log.error(f"Cog not found: {cog_extension}") + except Exception as e: + log.exception(f"Failed to load cog {cog_extension}: {e}") + log.info(f"Specific cogs loading attempted for: {FEMDOM_TETO_COGS}") log.info("FemdomTetoBot setup_hook completed.")