From 023e0eacdb3642464f99666c6bcba403d5f10933 Mon Sep 17 00:00:00 2001 From: cyclop-bot <178948048+cyclop-bot@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:49:31 -0500 Subject: [PATCH] Temporarily remove browse command to fix slash command synchronization, as URL browsing functionality is not yet implemented. --- discord_helper.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/discord_helper.py b/discord_helper.py index 8605a88..4ecbc7b 100644 --- a/discord_helper.py +++ b/discord_helper.py @@ -5,7 +5,6 @@ import time from typing import TypedDict, Union, TypeAlias, List import discord from discord.ext import commands -from browse_command import browse_command from inference_bot import InferenceBot class MessageHandlerLogicResult(TypedDict): @@ -117,16 +116,6 @@ class DiscordHelper(commands.Cog): except Exception as e_reply: self.logger.error(f"Failed to send error reply: {e_reply}") - @discord.app_commands.command(name="browse", description="Browses a given URL for information.") - async def browse(self, interaction: discord.Interaction, url: str): - await interaction.response.defer() - # Assuming browse_command is designed to work with Interaction or can be adapted - # If browse_command expects a ctx object, you might need to wrap it or adapt browse_command - # For now, let's assume it can be adapted or takes necessary arguments directly. - # You may need to modify browse_command.py to accept interaction and followup.send - await browse_command(interaction, self.bot_logic, url) # Pass interaction and url - - def run(self): intents = discord.Intents.default() intents.message_content = True # Required for accessing message.content