koishi-plugin-bilibili-notify 1.3.4 → 1.3.5
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 +4 -1
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface Config {
|
|
|
18
18
|
dynamic: {};
|
|
19
19
|
dynamicUrl: boolean;
|
|
20
20
|
dynamicCheckNumber: number;
|
|
21
|
-
dynamicLoopTime: '1分钟' | '2分钟' | '3分钟' | '5分钟';
|
|
21
|
+
dynamicLoopTime: '1分钟' | '2分钟' | '3分钟' | '5分钟' | '20分钟';
|
|
22
22
|
live: {};
|
|
23
23
|
changeMasterInfoApi: boolean;
|
|
24
24
|
liveStartAtAll: boolean;
|
package/lib/index.js
CHANGED
|
@@ -93,7 +93,7 @@ exports.Config = koishi_1.Schema.object({
|
|
|
93
93
|
.step(1)
|
|
94
94
|
.default(5)
|
|
95
95
|
.description('设定每次检查动态的数量。若订阅的UP主经常在短时间内连着发多条动态可以将该值提高,若订阅的UP主有置顶动态,在计算该值时应+1。默认值为5条'),
|
|
96
|
-
dynamicLoopTime: koishi_1.Schema.union(['1分钟', '2分钟', '3分钟', '5分钟'])
|
|
96
|
+
dynamicLoopTime: koishi_1.Schema.union(['1分钟', '2分钟', '3分钟', '5分钟', '20分钟'])
|
|
97
97
|
.role('')
|
|
98
98
|
.default('2分钟')
|
|
99
99
|
.description('设定多久检测一次动态。若需动态的时效性,可以设置为1分钟。若订阅的UP主经常在短时间内连着发多条动态应该将该值提高,否则会出现动态漏推送和晚推送的问题,默认值为2分钟'),
|
|
@@ -243,6 +243,9 @@ class ServerManager extends koishi_1.Service {
|
|
|
243
243
|
case '5分钟':
|
|
244
244
|
this.dynamicLoopTime = 300;
|
|
245
245
|
break;
|
|
246
|
+
case '20分钟':
|
|
247
|
+
this.dynamicLoopTime = 1200;
|
|
248
|
+
break;
|
|
246
249
|
}
|
|
247
250
|
// 注册插件
|
|
248
251
|
this.registerPlugin();
|
package/package.json
CHANGED