mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 14:56:03 +00:00
feat: 添加多个可视化编辑schema
This commit is contained in:
39
templates/schema/command.json
Normal file
39
templates/schema/command.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"type": "object",
|
||||
"layout": "expansion-panels",
|
||||
"properties": {
|
||||
"command-prefix": {
|
||||
"type": "array",
|
||||
"title": "命令前缀",
|
||||
"description": "以数组形式设置,程序将前缀符合设置的消息视为命令(群内需要符合群响应规则)",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"privilege": {
|
||||
"type": "object",
|
||||
"title": "权限管理",
|
||||
"layout": {
|
||||
"props": {
|
||||
"title": "权限管理"
|
||||
}
|
||||
},
|
||||
"description": "设置每个命令的权限配置。普通用户权限级别为 1,管理员(system.json中设置的)权限级别为 2;在这里设置每个命令的最低权限级别,若设置为1,则用户和管理员均可用,若为2,则仅管理员可用;设置子命令时,以点号间隔,如\"plugin.on\"",
|
||||
"properties": {
|
||||
"placeholder": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 2,
|
||||
"const": 1
|
||||
}
|
||||
},
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z0-9_.]+$": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user