fix: Remove !ai memory command — natural conversation only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
16
bot.py
16
bot.py
@@ -105,7 +105,6 @@ HELP_TEXT = """**AI Bot Commands**
|
||||
- `!ai wildfiles connect` — Connect your WildFiles account (opens browser approval)
|
||||
- `!ai wildfiles disconnect` — Disconnect your WildFiles account
|
||||
- `!ai auto-rename on|off` — Auto-rename room based on conversation topic
|
||||
- `!ai memory <fact>` — Explicitly tell the bot to remember something
|
||||
- `!ai forget` — Delete all memories the bot has about you
|
||||
- `!ai memories` — Show what the bot remembers about you
|
||||
- **Translate**: Forward a message to this DM — bot detects language and offers translation
|
||||
@@ -950,21 +949,6 @@ class Bot:
|
||||
status = "enabled" if enabled else "disabled"
|
||||
await self._send_text(room.room_id, f"Auto-rename **{status}** for this room.")
|
||||
|
||||
elif cmd.startswith("memory "):
|
||||
fact = cmd[7:].strip()
|
||||
sender = event.sender if event else None
|
||||
if not fact:
|
||||
await self._send_text(room.room_id, "Usage: `!ai memory <fact>`")
|
||||
return
|
||||
if sender:
|
||||
memories = self._load_memories(sender)
|
||||
memories.append({"fact": fact, "created": time.time(), "source_room": room.room_id})
|
||||
self._save_memories(sender, memories)
|
||||
await self._send_text(room.room_id, f"Remembered: {fact}")
|
||||
logger.info("Explicit memory stored for %s: %s", sender, fact[:80])
|
||||
else:
|
||||
await self._send_text(room.room_id, "Could not identify user.")
|
||||
|
||||
elif cmd == "forget":
|
||||
sender = event.sender if event else None
|
||||
if sender:
|
||||
|
||||
Reference in New Issue
Block a user