perf: 优化!plugin指令的输出格式

This commit is contained in:
Rock Chin
2023-01-18 15:26:35 +08:00
parent 3c96e1298c
commit 2b20d946e6

View File

@@ -90,7 +90,7 @@ def plugin_operation(cmd, params, is_admin):
plugin_list = plugin_host.__plugins__
if len(params) == 0:
reply_str = "[bot]所有插件({}):\n\n".format(len(plugin_list))
reply_str = "[bot]所有插件({}):\n".format(len(plugin_list))
idx = 0
for key in plugin_list:
plugin = plugin_list[key]
@@ -102,8 +102,6 @@ def plugin_operation(cmd, params, is_admin):
if remote_url != "https://github.com/RockChinQ/QChatGPT" and remote_url != "https://gitee.com/RockChin/QChatGPT":
reply_str += "源码: "+remote_url+"\n"
reply_str += "\n"
idx += 1
reply = [reply_str]