mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 21:38:18 +08:00
feat: optimize args in help text
This commit is contained in:
@@ -106,8 +106,8 @@ def get_help_text(isadmin, isgroup):
|
||||
alias=["#"+a for a in info['alias']]
|
||||
help_text += f"{','.join(alias)} "
|
||||
if 'args' in info:
|
||||
args=["{"+a+"}" for a in info['args']]
|
||||
help_text += f"{' '.join(args)} "
|
||||
args=[a for a in info['args']]
|
||||
help_text += f"{' '.join(args)}"
|
||||
help_text += f": {info['desc']}\n"
|
||||
|
||||
# 插件指令
|
||||
@@ -124,6 +124,9 @@ def get_help_text(isadmin, isgroup):
|
||||
for cmd, info in ADMIN_COMMANDS.items():
|
||||
alias=["#"+a for a in info['alias']]
|
||||
help_text += f"{','.join(alias)} "
|
||||
if 'args' in info:
|
||||
args=[a for a in info['args']]
|
||||
help_text += f"{' '.join(args)}"
|
||||
help_text += f": {info['desc']}\n"
|
||||
return help_text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user