diff --git a/backend/main.py b/backend/main.py index b7ad80a..34ee9f9 100644 --- a/backend/main.py +++ b/backend/main.py @@ -13,7 +13,7 @@ from app.core.orchestration.queue_manager import AsyncQueueManager from app.database.weaviate.client import get_weaviate_client from integrations.discord.bot import DiscordBot -from discord.ext import commands +from discord import errors as discord_errors # DevRel commands are now loaded dynamically (commented out below) # from integrations.discord.cogs import DevRelCommands @@ -48,7 +48,7 @@ async def start_background_tasks(self): # --- Load commands inside the async startup function --- try: await self.discord_bot.load_extension("integrations.discord.cogs") - except (ImportError, commands.ExtensionError) as e: + except (ImportError, discord_errors.ExtensionFailed) as e: logger.error("Failed to load Discord cog extension: %s", e) # Start the bot as a background task. diff --git a/backend/requirements.txt b/backend/requirements.txt index 5982753..c005967 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -153,7 +153,6 @@ proto-plus==1.26.1 protobuf>=3.20.2,<4.0 ptyprocess==0.7.0 pure_eval==0.2.3 -py-cord==2.6.2 # Latest version to minimize deprecation warnings pyasn1==0.6.1 pyasn1_modules==0.4.2 pycodestyle==2.13.0 diff --git a/pyproject.toml b/pyproject.toml index 3d22557..22af1d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,6 @@ requires-python = ">=3.10,<3.14" dependencies = [ "supabase (>=2.13.0,<3.0.0)", "fastapi (>=0.115.11,<0.116.0)", - "py-cord (>=2.6.1,<3.0.0)", "pygithub (>=2.6.1,<3.0.0)", "slack-sdk (>=3.34.0,<4.0.0)", "sentence-transformers (>=3.4.1,<4.0.0)",