Skip to content

Commit 058c167

Browse files
committed
docs: trim help cmd
1 parent 49446d4 commit 058c167

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/godcmd/godcmd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@
136136

137137
# 定义帮助函数
138138
def get_help_text(isadmin, isgroup):
139-
help_text = "通用指令\n"
139+
help_text = "通用指令\n"
140140
for cmd, info in COMMANDS.items():
141-
if cmd == "auth": # 不提示认证指令
141+
if cmd in ["auth", "set_openai_api_key", "reset_openai_api_key", "set_gpt_model", "reset_gpt_model", "gpt_model"]: # 不显示帮助指令
142142
continue
143143
if cmd == "id" and conf().get("channel_type", "wx") not in ["wxy", "wechatmp"]:
144144
continue
@@ -151,7 +151,7 @@ def get_help_text(isadmin, isgroup):
151151

152152
# 插件指令
153153
plugins = PluginManager().list_plugins()
154-
help_text += "\n目前可用插件有:"
154+
help_text += "\n可用插件"
155155
for plugin in plugins:
156156
if plugins[plugin].enabled and not plugins[plugin].hidden:
157157
namecn = plugins[plugin].namecn

plugins/linkai/linkai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _fetch_group_app_code(self, group_name: str) -> str:
220220

221221
def get_help_text(self, verbose=False, **kwargs):
222222
trigger_prefix = _get_trigger_prefix()
223-
help_text = "用于集成 LinkAI 提供的知识库、Midjourney绘画、文档总结对话等能力\n\n"
223+
help_text = "用于集成 LinkAI 提供的知识库、Midjourney绘画、文档总结、联网搜索等能力\n\n"
224224
if not verbose:
225225
return help_text
226226
help_text += f'📖 知识库\n - 群聊中指定应用: {trigger_prefix}linkai app 应用编码\n'

0 commit comments

Comments
 (0)