diff --git a/paperdynasty.py b/paperdynasty.py index 219ce90..65f3845 100644 --- a/paperdynasty.py +++ b/paperdynasty.py @@ -131,6 +131,14 @@ async def main(): logger.error(f"Failed to load cog: {c}") logger.error(f"{e}") + # Load dev-only cogs when not in production + if "prod" not in os.getenv("DATABASE", "dev").lower(): + try: + await bot.load_extension("cogs.dev_tools") + logger.info("Loaded dev-only cog: dev_tools") + except Exception as e: + logger.warning(f"Failed to load dev_tools cog: {e}") + # Start health server and bot concurrently async with bot: # Create health server task