refactor(commands): 修改未知命令处理逻辑为返回None

移除orchestrator/agent.py中不再需要的命令检测逻辑,因命令处理已提前在bot/commands.py中完成
This commit is contained in:
Yuyao Huang (Sam)
2026-03-28 12:18:41 +08:00
parent 6307deb701
commit 5d55d01f40
2 changed files with 3 additions and 9 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ async def handle_command(user_id: str, text: str) -> Optional[str]:
elif cmd in ("/help", "/h", "/?"):
return _cmd_help()
else:
return f"Unknown command: {cmd}\n\n{_cmd_help()}"
return None
async def _cmd_new(user_id: str, args: str) -> str: