Browse Source

docs: trim help cmd

master
zhayujie 1 year ago
parent
commit
058c167f79
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      plugins/godcmd/godcmd.py
  2. +1
    -1
      plugins/linkai/linkai.py

+ 3
- 3
plugins/godcmd/godcmd.py View File

@@ -136,9 +136,9 @@ ADMIN_COMMANDS = {

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

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


+ 1
- 1
plugins/linkai/linkai.py View File

@@ -220,7 +220,7 @@ class LinkAI(Plugin):

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


Loading…
Cancel
Save