koishi-plugin-xxfd-1 0.0.2 → 0.0.3
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.
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,6 @@ export interface RepeaterConfig {
|
|
|
20
20
|
minDelay: number;
|
|
21
21
|
maxDelay: number;
|
|
22
22
|
}
|
|
23
|
-
export declare const Config: Schema
|
|
23
|
+
export declare const Config: Schema;
|
|
24
24
|
export declare function apply(ctx: Context, config: RepeaterConfig): void;
|
|
25
25
|
export {};
|
package/lib/index.js
CHANGED
|
@@ -29,11 +29,11 @@ var import_koishi = require("koishi");
|
|
|
29
29
|
var name = "xxfd-1";
|
|
30
30
|
var Config = import_koishi.Schema.object({
|
|
31
31
|
countFrequency: import_koishi.Schema.number().default(100).required().description("计数频率(每N条消息触发一次复读)"),
|
|
32
|
-
receiveGroups: import_koishi.Schema.array(import_koishi.Schema.string()).
|
|
33
|
-
sendGroups: import_koishi.Schema.array(import_koishi.Schema.string()).
|
|
32
|
+
receiveGroups: import_koishi.Schema.array(import_koishi.Schema.string()).default([]).description("接收消息的群聊列表(填写群号)"),
|
|
33
|
+
sendGroups: import_koishi.Schema.array(import_koishi.Schema.string()).default([]).description("发送复读消息的群聊列表(填写群号)"),
|
|
34
34
|
blockUsers: import_koishi.Schema.array(import_koishi.Schema.string()).default([]).description("屏蔽消息的QQ号列表(不统计这些人的消息)"),
|
|
35
35
|
minDelay: import_koishi.Schema.number().default(3).required().description("复读延迟最低时间(单位:秒)"),
|
|
36
|
-
maxDelay: import_koishi.Schema.number().default(600).required().description("复读延迟最高时间(单位:秒,默认10
|
|
36
|
+
maxDelay: import_koishi.Schema.number().default(600).required().description("复读延迟最高时间(单位:秒,默认10分钟)")
|
|
37
37
|
}).description("复读计数插件配置");
|
|
38
38
|
function apply(ctx, config) {
|
|
39
39
|
if (config.minDelay > config.maxDelay) {
|