fix: Rename connect/disconnect to wildfiles connect/disconnect (WF-90)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
bot.py
10
bot.py
@@ -70,8 +70,8 @@ HELP_TEXT = """**AI Bot Commands**
|
|||||||
- `!ai models` — List available models
|
- `!ai models` — List available models
|
||||||
- `!ai set-model <model>` — Set model for this room
|
- `!ai set-model <model>` — Set model for this room
|
||||||
- `!ai search <query>` — Search documents (WildFiles)
|
- `!ai search <query>` — Search documents (WildFiles)
|
||||||
- `!ai connect` — Connect your WildFiles account (opens browser approval)
|
- `!ai wildfiles connect` — Connect your WildFiles account (opens browser approval)
|
||||||
- `!ai disconnect` — Disconnect your WildFiles account
|
- `!ai wildfiles disconnect` — Disconnect your WildFiles account
|
||||||
- `!ai auto-rename on|off` — Auto-rename room based on conversation topic
|
- `!ai auto-rename on|off` — Auto-rename room based on conversation topic
|
||||||
- **@mention the bot** or start with `!ai` for a regular AI response"""
|
- **@mention the bot** or start with `!ai` for a regular AI response"""
|
||||||
|
|
||||||
@@ -420,11 +420,11 @@ class Bot:
|
|||||||
if cmd == "help":
|
if cmd == "help":
|
||||||
await self._send_text(room.room_id, HELP_TEXT)
|
await self._send_text(room.room_id, HELP_TEXT)
|
||||||
|
|
||||||
elif cmd == "connect" or cmd.startswith("connect "):
|
elif cmd == "wildfiles connect" or cmd.startswith("wildfiles connect "):
|
||||||
api_key = cmd[8:].strip() if cmd.startswith("connect ") else ""
|
api_key = cmd[18:].strip() if cmd.startswith("wildfiles connect ") else ""
|
||||||
await self._handle_connect(room, api_key, event)
|
await self._handle_connect(room, api_key, event)
|
||||||
|
|
||||||
elif cmd == "disconnect":
|
elif cmd == "wildfiles disconnect":
|
||||||
await self._handle_disconnect(room, event)
|
await self._handle_disconnect(room, event)
|
||||||
|
|
||||||
elif cmd == "models":
|
elif cmd == "models":
|
||||||
|
|||||||
Reference in New Issue
Block a user