diff --git a/config/view/config.yaml b/config/view/config.yaml index b306aae1..3adba669 100644 --- a/config/view/config.yaml +++ b/config/view/config.yaml @@ -1,100 +1,102 @@ name: 通用配置 view: - - - key: 日志等级 + - key: 日志等级 comment: 日志等级:trace,debug,info,warn,fatal,mark,error,off - path: 'log_level' - type: 'select' + path: "log_level" + type: "select" multiple: false item: - - - name: Trace + - name: Trace value: trace - - - name: Debug + - name: Debug value: ebug - - - name: Info + - name: Info value: info - - - name: Warn + - name: Warn value: warn - - - name: Fatal + - name: Fatal value: fatal - - - name: Mark + - name: Mark value: mark - - - name: Error + - name: Error value: error - - - name: Off + - name: Off value: off - - - key: 日志保留天数 - path: 'log_days_Keep' - type: 'number' - - - key: ffmpeg路径 + - key: 日志保留天数 + path: "log_days_Keep" + type: "number" + - key: ffmpeg路径 comment: ffmpeg配置 用于音视频处理 - path: 'ffmpeg_path' - type: 'text' - - - key: ffprobe路径 + path: "ffmpeg_path" + type: "text" + - key: ffprobe路径 comment: ffmpeg配置 用于音视频处理 - path: 'ffprobe_path' - type: 'text' - - - key: 主人列表 + path: "ffprobe_path" + type: "text" + - key: 主人列表 comment: 主人列表 主权限 - path: 'master' - type: 'array' - arrayType: 'number' - - - key: 管理员列表 + path: "master" + type: "array" + arrayType: "number" + - key: 管理员列表 comment: 管理员列表 子权限 - path: 'admin' - type: 'array' - arrayType: 'number' - - - key: 黑名单 + path: "admin" + type: "array" + arrayType: "number" + - key: 黑名单 comment: 黑名单相关 - path: 'BlackList' - type: 'group' + path: "BlackList" + type: "group" part: - - - key: 黑名单用户 - path: 'BlackList.users' - type: 'array' - arrayType: 'number' - - - key: 黑名单群聊 - path: 'BlackList.groups' - type: 'array' - arrayType: 'number' - - - key: 消息日志黑名单群聊 - comment: 设置后不会打印该群的消息日志 - path: 'BlackList.GroupMsgLog' - type: 'array' - arrayType: 'number' - - - key: 白名单 + - key: 黑名单用户 + path: "BlackList.users" + type: "array" + arrayType: "number" + associated: + - file: App + path: "BlackList.users" + requirement: true + - key: 黑名单群聊 + path: "BlackList.groups" + type: "array" + arrayType: "number" + associated: + - file: App + path: "BlackList.groups" + requirement: true + - key: 消息日志黑名单群聊 + comment: 设置后不会打印该群的消息日志 + path: "BlackList.GroupMsgLog" + type: "array" + arrayType: "number" + associated: + - file: App + path: "BlackList.GroupMsgLog" + requirement: true + - key: 白名单 comment: 白名单相关 - path: 'WhiteList' - type: 'group' + path: "WhiteList" + type: "group" part: - - - key: 白名单用户 - path: 'WhiteList.users' - type: 'boolean' - - - key: 白名单群聊 - path: 'WhiteList.groups' - type: 'boolean' - - - key: 消息日志白名单群聊 - comment: 消息日志白名单群聊 设置后只会打印该群的消息日志 - path: 'WhiteList.GroupMsgLog' - type: 'boolean' + - key: 白名单用户 + path: "WhiteList.users" + type: "boolean" + associated: + - file: App + path: "WhiteList.users" + requirement: true + - key: 白名单群聊 + path: "WhiteList.groups" + type: "boolean" + associated: + - file: App + path: "WhiteList.groups" + requirement: true + - key: 消息日志白名单群聊 + comment: 消息日志白名单群聊 设置后只会打印该群的消息日志 + path: "WhiteList.GroupMsgLog" + type: "boolean" + associated: + - file: App + path: "WhiteList.GroupMsgLog" + requirement: true diff --git a/config/view/group.yaml b/config/view/group.yaml index 44f457f4..fba02bec 100644 --- a/config/view/group.yaml +++ b/config/view/group.yaml @@ -11,17 +11,32 @@ view: path: 'default.global_cd' type: 'number' suffix: 秒 + associated: + - + file: App + path: 'GroupConfig.GroupCD' + requirement: true - key: 个人消息冷却时间 comment: 群聊中 每个人的消息冷却时间,0则无限制。注意,开启后所有消息,无论是否触发插件。 path: 'default.personal_cd' type: 'number' suffix: 秒 + associated: + - + file: App + path: 'GroupConfig.GroupUserCD' + requirement: true - key: 机器人响应模式 comment: 机器人响应模式,0-所有 1-仅@机器人 2-仅回应主人 3-仅回应前缀 4-前缀或@机器人 5-主人无前缀,群员前缀或@机器人 path: 'default.mode' type: 'select' + associated: + - + file: App + path: 'GroupConfig.mode' + requirement: true multiple: false item: - @@ -48,15 +63,30 @@ view: path: 'default.ailas' type: 'array' arrayType: 'text' + associated: + - + file: App + path: 'GroupConfig.alias' + requirement: true - key: 白名单插件 comment: 白名单插件、功能,只有在白名单中的插件、功能才会响应 path: 'default.enable' type: 'array' arrayType: 'text' + associated: + - + file: App + path: 'GroupConfig.enable' + requirement: true - key: 黑名单插件 comment: 黑名单插件、功能,黑名单中的插件、功能不会响应 path: 'default.disable' type: 'array' arrayType: 'text' + associated: + - + file: App + path: 'GroupConfig.disable' + requirement: true \ No newline at end of file