diff --git a/services/comms/scripts/atlasbot/bot.py b/services/comms/scripts/atlasbot/bot.py index deb8e62..e6c7542 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -335,7 +335,11 @@ def _has_any(text: str, phrases: tuple[str, ...]) -> bool: return any(p in text for p in phrases) def _detect_operation(q: str) -> str | None: + if _has_any(q, OPERATION_HINTS["top"]): + return "top" for op, phrases in OPERATION_HINTS.items(): + if op == "top": + continue if _has_any(q, phrases): return op return None