Temporarily remove browse command to fix slash command synchronization, as URL browsing functionality is not yet implemented.

This commit is contained in:
cyclop-bot
2025-06-03 14:49:31 -05:00
parent 7b9f0051c6
commit 023e0eacdb
-11
View File
@@ -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