node-karin 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,170 +1,170 @@
1
- name: 通用配置
2
- view:
3
- - key: 日志配置
4
- comment: log4js日志配置
5
- path: log4jsCfg
6
- type: group
7
- part:
8
- - key: 日志等级
9
- comment: 日志等级:trace,debug,info,warn,fatal,mark,error,off
10
- path: log_level
11
- type: select
12
- multiple: false
13
- item:
14
- - name: Trace
15
- value: trace
16
- - name: Debug
17
- value: ebug
18
- - name: Info
19
- value: info
20
- - name: Warn
21
- value: warn
22
- - name: Fatal
23
- value: fatal
24
- - name: Mark
25
- value: mark
26
- - name: Error
27
- value: error
28
- - name: Off
29
- value: off
30
- - key: 日志保留天数
31
- path: log_days_Keep
32
- type: number
33
- - key: 整体化
34
- comment: 将日志输出到一个文件(一天为一个文件) 日志较多的情况下不建议与碎片化同时开启
35
- path: overall
36
- type: boolean
37
- - key: 碎片化
38
- comment: 将日志分片,达到指定大小后自动切割 日志较多的情况下不建议与整体化同时开启
39
- path: fragments
40
- type: boolean
41
- - key: 日志文件最大大小
42
- comment: 日志文件最大大小 MB
43
- path: maxLogSize
44
- type: number
45
-
46
- - key: 后台进程
47
- comment: 关闭后台进程失败后是否继续启动 继续启动会导致多进程
48
- path: multi_progress
49
- type: boolean
50
-
51
- - key: 控制台插件日志颜色
52
- comment: 控制台触发插件日志颜色 十六进制 默认#FFFF00 不支持热更新
53
- path: log_color
54
- type: text
55
-
56
- - key: 私聊设置
57
- comment: 私聊设置
58
- path: private
59
- type: group
60
- part:
61
- - key: 关闭私聊提示词
62
- comment: 关闭私聊后回复的提示词 为空则不回复
63
- path: tips
64
- type: text
65
- - key: 关闭私聊白名单
66
- comment: 关闭私聊后的用户白名单
67
- path: white_list
68
- type: array
69
-
70
- - key: input适配器配置
71
- comment: input适配器配置 以下所有配置均不支持热更新
72
- path: AdapterInput
73
- type: group
74
- part:
75
- - key: 是否启用
76
- comment: 是否启动input适配器
77
- path: enable
78
- type: boolean
79
- - key: 是否转为文件
80
- comment: 是否将语音、图片、视频消息转为文件 转为文件后可通过url访问
81
- path: msgToFile
82
- type: boolean
83
- - key: url访问token
84
- comment: url访问token 如果为 AdapterInput 每次启动后会重新生成
85
- path: token
86
- type: text
87
- - key: 访问ip
88
- comment: 访问ip
89
- path: ip
90
- type: text
91
-
92
- - key: ffmpeg路径
93
- comment: ffmpeg配置 用于音视频处理
94
- path: ffmpeg_path
95
- type: text
96
-
97
- - key: ffprobe路径
98
- comment: ffmpeg配置 用于音视频处理
99
- path: ffprobe_path
100
- type: text
101
-
102
- - key: 主人列表
103
- comment: 主人列表 主权限
104
- path: master
105
- type: array
106
- arrayType: string
107
-
108
- - key: 管理员列表
109
- comment: 管理员列表 子权限
110
- path: admin
111
- type: array
112
- arrayType: string
113
-
114
- - key: 黑名单
115
- comment: 黑名单相关
116
- path: BlackList
117
- type: group
118
- part:
119
- - key: 黑名单用户
120
- path: BlackList.users
121
- type: array
122
- arrayType: string
123
- associated:
124
- - file: App
125
- path: BlackList.users
126
- requirement: true
127
- - key: 黑名单群聊
128
- path: BlackList.groups
129
- type: array
130
- arrayType: string
131
- associated:
132
- - file: App
133
- path: BlackList.groups
134
- requirement: true
135
- - key: 消息日志黑名单群聊
136
- comment: 设置后不会打印该群的消息日志
137
- path: BlackList.GroupMsgLog
138
- type: array
139
- arrayType: string
140
- associated:
141
- - file: App
142
- path: BlackList.GroupMsgLog
143
- requirement: true
144
- - key: 白名单
145
- comment: 白名单相关
146
- path: WhiteList
147
- type: group
148
- part:
149
- - key: 白名单用户
150
- path: WhiteList.users
151
- type: boolean
152
- associated:
153
- - file: App
154
- path: WhiteList.users
155
- requirement: true
156
- - key: 白名单群聊
157
- path: WhiteList.groups
158
- type: boolean
159
- associated:
160
- - file: App
161
- path: WhiteList.groups
162
- requirement: true
163
- - key: 消息日志白名单群聊
164
- comment: 消息日志白名单群聊 设置后只会打印该群的消息日志
165
- path: WhiteList.GroupMsgLog
166
- type: boolean
167
- associated:
168
- - file: App
169
- path: WhiteList.GroupMsgLog
170
- requirement: true
1
+ name: 通用配置
2
+ view:
3
+ - key: 日志配置
4
+ comment: log4js日志配置
5
+ path: log4jsCfg
6
+ type: group
7
+ part:
8
+ - key: 日志等级
9
+ comment: 日志等级:trace,debug,info,warn,fatal,mark,error,off
10
+ path: log_level
11
+ type: select
12
+ multiple: false
13
+ item:
14
+ - name: Trace
15
+ value: trace
16
+ - name: Debug
17
+ value: ebug
18
+ - name: Info
19
+ value: info
20
+ - name: Warn
21
+ value: warn
22
+ - name: Fatal
23
+ value: fatal
24
+ - name: Mark
25
+ value: mark
26
+ - name: Error
27
+ value: error
28
+ - name: Off
29
+ value: off
30
+ - key: 日志保留天数
31
+ path: log_days_Keep
32
+ type: number
33
+ - key: 整体化
34
+ comment: 将日志输出到一个文件(一天为一个文件) 日志较多的情况下不建议与碎片化同时开启
35
+ path: overall
36
+ type: boolean
37
+ - key: 碎片化
38
+ comment: 将日志分片,达到指定大小后自动切割 日志较多的情况下不建议与整体化同时开启
39
+ path: fragments
40
+ type: boolean
41
+ - key: 日志文件最大大小
42
+ comment: 日志文件最大大小 MB
43
+ path: maxLogSize
44
+ type: number
45
+
46
+ - key: 后台进程
47
+ comment: 关闭后台进程失败后是否继续启动 继续启动会导致多进程
48
+ path: multi_progress
49
+ type: boolean
50
+
51
+ - key: 控制台插件日志颜色
52
+ comment: 控制台触发插件日志颜色 十六进制 默认#FFFF00 不支持热更新
53
+ path: log_color
54
+ type: text
55
+
56
+ - key: 私聊设置
57
+ comment: 私聊设置
58
+ path: private
59
+ type: group
60
+ part:
61
+ - key: 关闭私聊提示词
62
+ comment: 关闭私聊后回复的提示词 为空则不回复
63
+ path: tips
64
+ type: text
65
+ - key: 关闭私聊白名单
66
+ comment: 关闭私聊后的用户白名单
67
+ path: white_list
68
+ type: array
69
+
70
+ - key: input适配器配置
71
+ comment: input适配器配置 以下所有配置均不支持热更新
72
+ path: AdapterInput
73
+ type: group
74
+ part:
75
+ - key: 是否启用
76
+ comment: 是否启动input适配器
77
+ path: enable
78
+ type: boolean
79
+ - key: 是否转为文件
80
+ comment: 是否将语音、图片、视频消息转为文件 转为文件后可通过url访问
81
+ path: msgToFile
82
+ type: boolean
83
+ - key: url访问token
84
+ comment: url访问token 如果为 AdapterInput 每次启动后会重新生成
85
+ path: token
86
+ type: text
87
+ - key: 访问ip
88
+ comment: 访问ip
89
+ path: ip
90
+ type: text
91
+
92
+ - key: ffmpeg路径
93
+ comment: ffmpeg配置 用于音视频处理
94
+ path: ffmpeg_path
95
+ type: text
96
+
97
+ - key: ffprobe路径
98
+ comment: ffmpeg配置 用于音视频处理
99
+ path: ffprobe_path
100
+ type: text
101
+
102
+ - key: 主人列表
103
+ comment: 主人列表 主权限
104
+ path: master
105
+ type: array
106
+ arrayType: string
107
+
108
+ - key: 管理员列表
109
+ comment: 管理员列表 子权限
110
+ path: admin
111
+ type: array
112
+ arrayType: string
113
+
114
+ - key: 黑名单
115
+ comment: 黑名单相关
116
+ path: BlackList
117
+ type: group
118
+ part:
119
+ - key: 黑名单用户
120
+ path: BlackList.users
121
+ type: array
122
+ arrayType: string
123
+ associated:
124
+ - file: App
125
+ path: BlackList.users
126
+ requirement: true
127
+ - key: 黑名单群聊
128
+ path: BlackList.groups
129
+ type: array
130
+ arrayType: string
131
+ associated:
132
+ - file: App
133
+ path: BlackList.groups
134
+ requirement: true
135
+ - key: 消息日志黑名单群聊
136
+ comment: 设置后不会打印该群的消息日志
137
+ path: BlackList.GroupMsgLog
138
+ type: array
139
+ arrayType: string
140
+ associated:
141
+ - file: App
142
+ path: BlackList.GroupMsgLog
143
+ requirement: true
144
+ - key: 白名单
145
+ comment: 白名单相关
146
+ path: WhiteList
147
+ type: group
148
+ part:
149
+ - key: 白名单用户
150
+ path: WhiteList.users
151
+ type: boolean
152
+ associated:
153
+ - file: App
154
+ path: WhiteList.users
155
+ requirement: true
156
+ - key: 白名单群聊
157
+ path: WhiteList.groups
158
+ type: boolean
159
+ associated:
160
+ - file: App
161
+ path: WhiteList.groups
162
+ requirement: true
163
+ - key: 消息日志白名单群聊
164
+ comment: 消息日志白名单群聊 设置后只会打印该群的消息日志
165
+ path: WhiteList.GroupMsgLog
166
+ type: boolean
167
+ associated:
168
+ - file: App
169
+ path: WhiteList.GroupMsgLog
170
+ requirement: true
@@ -1,73 +1,73 @@
1
- name: 群聊配置
2
- view:
3
- - key: 默认配置
4
- path: "default"
5
- type: "group"
6
- part:
7
- - key: 消息冷却时间
8
- comment: 群聊中所有消息冷却时间,0则无限制
9
- path: "default.global_cd"
10
- type: "number"
11
- suffix: 秒
12
- associated:
13
- - file: App
14
- path: "GroupConfig.GroupCD"
15
- requirement: true
16
- - key: 个人消息冷却时间
17
- comment: 群聊中 每个人的消息冷却时间,0则无限制。注意,开启后所有消息,无论是否触发插件。
18
- path: "default.personal_cd"
19
- type: "number"
20
- suffix: 秒
21
- associated:
22
- - file: App
23
- path: "GroupConfig.GroupUserCD"
24
- requirement: true
25
- - key: 机器人响应模式
26
- comment: 机器人响应模式,0-所有 1-仅@机器人 2-仅回应主人 3-仅回应前缀 4-前缀或@机器人 5-主人无前缀,群员前缀或@机器人
27
- path: "default.mode"
28
- type: "select"
29
- associated:
30
- - file: App
31
- path: "GroupConfig.mode"
32
- requirement: true
33
- multiple: false
34
- item:
35
- - name: 所有
36
- value: 0
37
- - name: 仅@机器人
38
- value: 1
39
- - name: 仅回应主人
40
- value: 2
41
- - name: 仅回应前缀
42
- value: 3
43
- - name: 前缀或@机器人
44
- value: 4
45
- - name: 主人无前缀,群员前缀或@机器人
46
- value: 5
47
- - key: 机器人前缀
48
- comment: 机器人前缀 设置后前缀+指令触发机器人
49
- path: "default.ailas"
50
- type: "array"
51
- arrayType: "text"
52
- associated:
53
- - file: App
54
- path: "GroupConfig.alias"
55
- requirement: true
56
- - key: 白名单插件
57
- comment: 白名单插件、功能,只有在白名单中的插件、功能才会响应
58
- path: "default.enable"
59
- type: "array"
60
- arrayType: "text"
61
- associated:
62
- - file: App
63
- path: "GroupConfig.enable"
64
- requirement: true
65
- - key: 黑名单插件
66
- comment: 黑名单插件、功能,黑名单中的插件、功能不会响应
67
- path: "default.disable"
68
- type: "array"
69
- arrayType: "text"
70
- associated:
71
- - file: App
72
- path: "GroupConfig.disable"
73
- requirement: true
1
+ name: 群聊配置
2
+ view:
3
+ - key: 默认配置
4
+ path: "default"
5
+ type: "group"
6
+ part:
7
+ - key: 消息冷却时间
8
+ comment: 群聊中所有消息冷却时间,0则无限制
9
+ path: "default.global_cd"
10
+ type: "number"
11
+ suffix: 秒
12
+ associated:
13
+ - file: App
14
+ path: "GroupConfig.GroupCD"
15
+ requirement: true
16
+ - key: 个人消息冷却时间
17
+ comment: 群聊中 每个人的消息冷却时间,0则无限制。注意,开启后所有消息,无论是否触发插件。
18
+ path: "default.personal_cd"
19
+ type: "number"
20
+ suffix: 秒
21
+ associated:
22
+ - file: App
23
+ path: "GroupConfig.GroupUserCD"
24
+ requirement: true
25
+ - key: 机器人响应模式
26
+ comment: 机器人响应模式,0-所有 1-仅@机器人 2-仅回应主人 3-仅回应前缀 4-前缀或@机器人 5-主人无前缀,群员前缀或@机器人
27
+ path: "default.mode"
28
+ type: "select"
29
+ associated:
30
+ - file: App
31
+ path: "GroupConfig.mode"
32
+ requirement: true
33
+ multiple: false
34
+ item:
35
+ - name: 所有
36
+ value: 0
37
+ - name: 仅@机器人
38
+ value: 1
39
+ - name: 仅回应主人
40
+ value: 2
41
+ - name: 仅回应前缀
42
+ value: 3
43
+ - name: 前缀或@机器人
44
+ value: 4
45
+ - name: 主人无前缀,群员前缀或@机器人
46
+ value: 5
47
+ - key: 机器人前缀
48
+ comment: 机器人前缀 设置后前缀+指令触发机器人
49
+ path: "default.ailas"
50
+ type: "array"
51
+ arrayType: "text"
52
+ associated:
53
+ - file: App
54
+ path: "GroupConfig.alias"
55
+ requirement: true
56
+ - key: 白名单插件
57
+ comment: 白名单插件、功能,只有在白名单中的插件、功能才会响应
58
+ path: "default.enable"
59
+ type: "array"
60
+ arrayType: "text"
61
+ associated:
62
+ - file: App
63
+ path: "GroupConfig.enable"
64
+ requirement: true
65
+ - key: 黑名单插件
66
+ comment: 黑名单插件、功能,黑名单中的插件、功能不会响应
67
+ path: "default.disable"
68
+ type: "array"
69
+ arrayType: "text"
70
+ associated:
71
+ - file: App
72
+ path: "GroupConfig.disable"
73
+ requirement: true
@@ -1,41 +1,41 @@
1
- name: pm2配置
2
- view:
3
- -
4
- key: 应用
5
- path: 'apps'
6
- type: 'group'
7
- part:
8
- -
9
- key: 启动名称
10
- path: 'apps.name'
11
- type: 'text'
12
- -
13
- key: 进程守护
14
- path: 'apps.autorestart'
15
- type: 'boolean'
16
- -
17
- key: 每分钟最大重启数量
18
- path: 'apps.max_restarts'
19
- type: 'number'
20
- -
21
- key: 内存溢出重启
22
- comment: 内存溢出重启,可以是“10M”、“100K”、“2G”等
23
- path: 'apps.max_memory_restart'
24
- type: 'text'
25
- -
26
- key: 重启延迟
27
- path: 'apps.restart_delay'
28
- type: 'number'
29
- suffix: 毫秒
30
- -
31
- key: 避免使用进程 id 后缀日志文件
32
- path: 'apps.merge_logs'
33
- type: 'boolean'
34
- -
35
- key: 错误日志路径
36
- path: 'apps.error_file'
37
- type: 'text'
38
- -
39
- key: 输出日志路径
40
- path: 'apps.out_file'
41
- type: 'text'
1
+ name: pm2配置
2
+ view:
3
+ -
4
+ key: 应用
5
+ path: 'apps'
6
+ type: 'group'
7
+ part:
8
+ -
9
+ key: 启动名称
10
+ path: 'apps.name'
11
+ type: 'text'
12
+ -
13
+ key: 进程守护
14
+ path: 'apps.autorestart'
15
+ type: 'boolean'
16
+ -
17
+ key: 每分钟最大重启数量
18
+ path: 'apps.max_restarts'
19
+ type: 'number'
20
+ -
21
+ key: 内存溢出重启
22
+ comment: 内存溢出重启,可以是“10M”、“100K”、“2G”等
23
+ path: 'apps.max_memory_restart'
24
+ type: 'text'
25
+ -
26
+ key: 重启延迟
27
+ path: 'apps.restart_delay'
28
+ type: 'number'
29
+ suffix: 毫秒
30
+ -
31
+ key: 避免使用进程 id 后缀日志文件
32
+ path: 'apps.merge_logs'
33
+ type: 'boolean'
34
+ -
35
+ key: 错误日志路径
36
+ path: 'apps.error_file'
37
+ type: 'text'
38
+ -
39
+ key: 输出日志路径
40
+ path: 'apps.out_file'
41
+ type: 'text'
@@ -1,20 +1,20 @@
1
- name: 数据库配置
2
- view:
3
- - key: redis地址
4
- path: "host"
5
- type: "text"
6
- - key: redis端口
7
- path: "port"
8
- type: "number"
9
- - key: redis用户名
10
- comment: redis用户名,可以为空
11
- path: "username"
12
- type: "text"
13
- - key: redis密码
14
- comment: redis密码,没有密码可以为空
15
- path: "password"
16
- type: "password"
17
- - key: 数据库
18
- comment: 运行中第几个redis数据库
19
- path: "db"
20
- type: "number"
1
+ name: 数据库配置
2
+ view:
3
+ - key: redis地址
4
+ path: "host"
5
+ type: "text"
6
+ - key: redis端口
7
+ path: "port"
8
+ type: "number"
9
+ - key: redis用户名
10
+ comment: redis用户名,可以为空
11
+ path: "username"
12
+ type: "text"
13
+ - key: redis密码
14
+ comment: redis密码,没有密码可以为空
15
+ path: "password"
16
+ type: "password"
17
+ - key: 数据库
18
+ comment: 运行中第几个redis数据库
19
+ path: "db"
20
+ type: "number"