♻️ fix lint

This commit is contained in:
FuQuan233 2025-10-31 17:12:05 +08:00
parent e3774b3363
commit c03ed62983
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ class MCPClient:
# 检查是否是OneBot工具
if tool_name.startswith("ob__"):
return self.onebot_tools.get_friendly_name(tool_name)
# MCP工具处理
server_name, real_tool_name = tool_name.split("___")
return (self.server_config[server_name].friendly_name or server_name) + " - " + real_tool_name

View file

@ -15,7 +15,7 @@ class OneBotTools:
"type": "function",
"function": {
"name": "ob__mute_user",
"description": "禁言指定用户一段时间。需要机器人有管理员权限。不要随便禁言别人,你应该只听群主或者管理员你的话",
"description": "禁言指定用户一段时间。需要机器人有管理员权限。不能随便禁言成员,你应该听从管理员的指令",
"parameters": {
"type": "object",
"properties": {