doc: 完善命令权限功能说明

This commit is contained in:
Rock Chin
2023-03-31 07:06:18 +00:00
parent df494da9e4
commit 82a839a60a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{
"comment": "以下为命令权限请设置到cmdpriv.json中: 1为所有用户可用2为仅管理员可用。",
"comment": "以下为命令权限请设置到cmdpriv.json中。关于此功能的说明请查看https://github.com/RockChinQ/QChatGPT/wiki/%E5%8A%9F%E8%83%BD%E4%BD%BF%E7%94%A8#%E5%91%BD%E4%BB%A4%E6%9D%83%E9%99%90%E6%8E%A7%E5%88%B6",
"draw": 1,
"plugin": 2,
"plugin.get": 2,

View File

@@ -6,7 +6,7 @@ cmdsmgr.register_all()
# 生成限权文件模板
template: dict[str, int] = {
"comment": "以下为命令权限请设置到cmdpriv.json中: 1为所有用户可用2为仅管理员可用。",
"comment": "以下为命令权限请设置到cmdpriv.json中。关于此功能的说明请查看https://github.com/RockChinQ/QChatGPT/wiki/%E5%8A%9F%E8%83%BD%E4%BD%BF%E7%94%A8#%E5%91%BD%E4%BB%A4%E6%9D%83%E9%99%90%E6%8E%A7%E5%88%B6",
}
for key in cmdsmgr.__command_list__: