forked from Zhalslar/astrbot_plugin_pokepro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_conf_schema.json
More file actions
353 lines (353 loc) · 11.7 KB
/
Copy path_conf_schema.json
File metadata and controls
353 lines (353 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
{
"on_poke": {
"description": "被戳监听开关",
"hint": "打开后, 监听所有戳一戳事件, 然后按权重随机触发一个回复动作, 回复动作包括: 跟戳、反戳、llm回复、回复QQ表情、回复表情包、语音、禁言、触发命令。各个回复动作的详细配置如下",
"type": "bool",
"default": true
},
"poke_cd": {
"description": "被戳监听CD",
"type": "int",
"hint": "冷却机制: 每个用户戳bot的冷却时间, 单位为秒, 冷却时间内不检测该用户的戳一戳, 可有效防止挂逼连戳",
"slider": {
"min": 2,
"max": 30,
"step": 1
},
"default": 10
},
"follow_prob": {
"description": "跟戳概率",
"type": "float",
"hint": "跟戳机制:检测到别人被戳时, 随机跟着戳一下",
"slider": {
"min": 0,
"max": 1,
"step": 0.01
},
"default": 0.1
},
"antipoke": {
"description": "反戳",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 10
},
"max_times": {
"description": "最大反戳次数",
"hint": "触发反戳时, 从 1 到 最大反戳次数中随机选择一个数, 然后反戳次数为该数",
"type": "int",
"slider": {
"min": 1,
"max": 10,
"step": 1
},
"default": 5
}
}
},
"llm": {
"description": "LLM 回复",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 10
},
"template": {
"description": "llm提示模板",
"type": "text",
"hint": "触发llm回复时, llm的提示模板",
"default": "{username} 戳了你一下, 请你用一句话回复一下, 确保符合人设的同时夹带生气甚至愤怒的情绪, 考虑上下文, 确保通顺不突兀"
}
}
},
"face": {
"description": "回复QQ表情",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 10
},
"pool": {
"description": "表情池",
"type": "list",
"hint": "触发qq表情回复时, 随机从池中选用一个表情ID",
"default": [
1,
11,
14,
15,
23,
25,
26,
27,
31,
46,
97,
98,
18,
265,
266,
267,
271,
287,
312,
352,
427
]
},
"max_copy_count": {
"description": "最大复制数",
"hint": "随机选好一个表情后, 从 1 到 最大复制数 中随机选择一个数 n, 然后复制 n 个表情来一起发送",
"type": "int",
"slider": {
"min": 1,
"max": 8,
"step": 1
},
"default": 3
}
}
},
"meme": {
"description": "回复表情包",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 10
},
"pool": {
"description": "表情包图片池",
"type": "file",
"hint": "触发表情包回复时, 随机从池中选出一张图片发送",
"default": []
}
}
},
"yuyin": {
"description": "回复语音",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 0
},
"pool": {
"description": "语音音频池",
"type": "file",
"hint": "触发语音回复时, 随机从池中选出一个音频文件发送(支持MP3等音频格式)",
"default": []
}
}
},
"ban": {
"description": "禁言",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 10
},
"duration": {
"description": "基础禁言时间",
"type": "int",
"hint": "触发禁言时的基础禁言时间(单位:秒)",
"slider": {
"min": 1,
"max": 3600,
"step": 1
},
"default": 60
},
"delta": {
"description": "禁言时间波动范围",
"type": "int",
"hint": "在基础禁言时间上随机上下浮动的秒数(±), 例如 15 表示 base±15",
"slider": {
"min": 0,
"max": 600,
"step": 1
},
"default": 30
},
"ban_template": {
"description": "禁言提示模板",
"type": "text",
"hint": "触发禁言时, 使用的llm提示模板",
"default": "{username} 戳了你一下, 然后被你禁言了, 请你用一句话嘲讽一下, 确保符合人设的同时夹带幸灾乐祸的情绪, 考虑上下文, 确保通顺不突兀"
},
"ban_fail_template": {
"description": "禁言失败提示模板",
"type": "text",
"hint": "触发禁言时, 如果禁言失败, 使用的llm提示模板",
"default": "{username} 戳了你一下, 你因为你的身份比这人低而无法禁言这人, 请你用一句话吐槽一下, 确保符合人设的同时夹带生气甚至愤怒的情绪的情绪, 考虑上下文, 确保通顺不突兀"
}
}
},
"command": {
"description": "触发命令",
"type": "object",
"items": {
"weight": {
"description": "触发权重",
"hint": "触发概率 = 本权重 / 所有权重之和",
"type": "int",
"slider": {
"min": 0,
"max": 100,
"step": 1
},
"default": 10
},
"pool": {
"description": "命令池",
"type": "list",
"hint": "触发命令回复时, 随机发送命令列表里的一个命令, 从而调用其他插件的功能, 请用逗号隔开各个命令, 并请确保命令在其他插件中有定义",
"default": [
"盒",
"捣",
"踩",
"玩",
"拍",
"丢",
"揍",
"爬",
"锤",
"吃",
"敲",
"滚",
"啃",
"胡桃啃",
"捏",
"小丑",
"震动",
"晃脑",
"上香",
"咖波撕",
"看看漫画",
"看看动漫",
"看看治愈",
"音乐视频",
"看看原神",
"看看emo"
]
}
}
},
"poke_max_times": {
"description": "发戳最大次数",
"type": "int",
"hint": "次数限制机制:使用命令 “戳 @某人 次数” 超出最大次数时, 则把次数限制为最大次数, 但bot管理员不受此限制",
"slider": {
"min": 1,
"max": 10,
"step": 1
},
"default": 5
},
"poke_interval": {
"description": "发戳间隔",
"type": "float",
"hint": "防风控机制:发送戳一戳时, 每次戳的时间间隔, 单位为秒。实测设为 0 也没风险, 但适当的间隔会显得更拟人",
"slider": {
"min": 0,
"max": 3,
"step": 0.1
},
"default": 0.5
},
"poke_keywords": {
"description": "发戳关键词",
"type": "list",
"hint": "关键词触发机制: 用户唤醒bot时, 若消息中包含有列表中的关键词, 则戳几下他",
"default": [
"笨蛋",
"人机",
"机器人",
"bot"
]
},
"scheduler": {
"description": "定时戳配置",
"type": "object",
"items": {
"enabled": {
"description": "是否启用",
"type": "bool",
"default": true
},
"cron": {
"description": "定时触发",
"hint": "使用 Cron 表达式(分 时 日 月 周)定义。例如:“30 22 * * *” 表示每天 22:30 触发",
"type": "string",
"default": "30 22 * * *"
},
"target": {
"description": "发戳目标",
"hint": "定义在哪个群戳谁,格式为 群号:QQ号",
"type": "list",
"default": [
"460973561:1959676873"
]
},
"times": {
"description": "戳的次数",
"hint": "定义每个目标用户戳多少次",
"type": "int",
"slider": {
"min": 1,
"max": 10,
"step": 1
},
"default": 1
}
}
}
}