refactor(commands): 修改未知命令处理逻辑为返回None
移除orchestrator/agent.py中不再需要的命令检测逻辑,因命令处理已提前在bot/commands.py中完成
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user