mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(discord): remove redundant /ask slash command
/ask was just 'send a message to the bot' via the slash command menu — completely redundant since Discord bots already listen to channel messages. Removed as part of salvaging PR #1827.
This commit is contained in:
parent
72bfa115a0
commit
1bee519a6f
1 changed files with 0 additions and 7 deletions
|
|
@ -1383,13 +1383,6 @@ class DiscordAdapter(BasePlatformAdapter):
|
|||
|
||||
tree = self._client.tree
|
||||
|
||||
@tree.command(name="ask", description="Ask Hermes a question")
|
||||
@discord.app_commands.describe(question="Your question for Hermes")
|
||||
async def slash_ask(interaction: discord.Interaction, question: str):
|
||||
await interaction.response.defer()
|
||||
event = self._build_slash_event(interaction, question)
|
||||
await self.handle_message(event)
|
||||
|
||||
@tree.command(name="new", description="Start a new conversation")
|
||||
async def slash_new(interaction: discord.Interaction):
|
||||
await self._run_simple_slash(interaction, "/reset", "New conversation started~")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue