Commit f96f8134036d

Vincent Demeester <vincent@sbr.pm>
2026-01-14 22:19:22
feat(xmpp-research-bot): add friendly hint for non-command messages
Previously the bot silently ignored non-command messages. Now it replies with a helpful message explaining how to use commands. When users send casual messages like "how are you" or "hello", the bot responds with: - Brief explanation that it's a research bot - Examples of common commands - Usage example This improves discoverability without being intrusive. Future enhancement: Smart detection to differentiate greetings from questions and auto-trigger research for queries. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a478493
Changed files (1)
modules
xmpp-research-bot
modules/xmpp-research-bot/bot.py
@@ -132,6 +132,14 @@ class ResearchBot(slixmpp.ClientXMPP):
 
         # Check if message starts with /
         if not body.startswith("/"):
+            help_msg = """I'm a research assistant bot! 🤖
+
+Use commands like:
+• /research <query> - Research a topic
+• /help - Show all commands
+
+Example: /research how does XMPP work?"""
+            msg.reply(help_msg).send()
             return
 
         # Parse command and arguments