koishi-plugin-bilibili-notify 3.2.5-alpha.0 → 3.2.5-alpha.10
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.mts +73 -0
- package/lib/index.d.ts +65 -62
- package/lib/index.js +95166 -395
- package/lib/index.mjs +95172 -0
- package/package.json +11 -8
- package/readme.md +19 -1
- package/lib/biliAPI.d.ts +0 -79
- package/lib/biliAPI.js +0 -811
- package/lib/blive.d.ts +0 -16
- package/lib/blive.js +0 -59
- package/lib/comRegister.d.ts +0 -106
- package/lib/comRegister.js +0 -1896
- package/lib/database.d.ts +0 -14
- package/lib/database.js +0 -14
- package/lib/font/HYZhengYuan-75W.ttf +0 -0
- package/lib/generateImg.d.ts +0 -52
- package/lib/generateImg.js +0 -1505
- package/lib/img/arrow.png +0 -0
- package/lib/type/index.d.ts +0 -262
- package/lib/type/index.js +0 -18
- package/lib/utils/index.d.ts +0 -13
- package/lib/utils/index.js +0 -102
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Context, ForkScope, Schema, Service } from "koishi";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
declare const inject: string[];
|
|
5
|
+
declare const name = "bilibili-notify";
|
|
6
|
+
declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
|
|
7
|
+
declare module "koishi" {
|
|
8
|
+
interface Context {
|
|
9
|
+
sm: ServerManager;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare class ServerManager extends Service {
|
|
13
|
+
servers: ForkScope[];
|
|
14
|
+
constructor(ctx: Context);
|
|
15
|
+
protected start(): void | Promise<void>;
|
|
16
|
+
registerPlugin: () => boolean;
|
|
17
|
+
disposePlugin: () => Promise<boolean>;
|
|
18
|
+
restartPlugin: () => Promise<boolean>;
|
|
19
|
+
}
|
|
20
|
+
declare function apply(ctx: Context, config: Config): void;
|
|
21
|
+
interface Config {
|
|
22
|
+
require: {};
|
|
23
|
+
key: string;
|
|
24
|
+
master: {};
|
|
25
|
+
basicSettings: {};
|
|
26
|
+
userAgent: string;
|
|
27
|
+
subTitle: {};
|
|
28
|
+
sub: Array<{
|
|
29
|
+
name: string;
|
|
30
|
+
uid: string;
|
|
31
|
+
dynamic: boolean;
|
|
32
|
+
live: boolean;
|
|
33
|
+
card: {};
|
|
34
|
+
target: Array<{
|
|
35
|
+
channelArr: Array<{
|
|
36
|
+
channelId: string;
|
|
37
|
+
dynamic: boolean;
|
|
38
|
+
live: boolean;
|
|
39
|
+
liveGuardBuy: boolean;
|
|
40
|
+
atAll: boolean;
|
|
41
|
+
bot: string;
|
|
42
|
+
}>;
|
|
43
|
+
platform: string;
|
|
44
|
+
}>;
|
|
45
|
+
}>;
|
|
46
|
+
dynamic: {};
|
|
47
|
+
dynamicUrl: boolean;
|
|
48
|
+
dynamicVideoUrlToBV: boolean;
|
|
49
|
+
pushImgsInDynamic: boolean;
|
|
50
|
+
live: {};
|
|
51
|
+
liveDetectType: "WS" | "API";
|
|
52
|
+
restartPush: boolean;
|
|
53
|
+
pushTime: number;
|
|
54
|
+
customLiveStart: string;
|
|
55
|
+
customLive: string;
|
|
56
|
+
customLiveEnd: string;
|
|
57
|
+
followerDisplay: boolean;
|
|
58
|
+
hideDesc: boolean;
|
|
59
|
+
style: {};
|
|
60
|
+
removeBorder: boolean;
|
|
61
|
+
cardColorStart: string;
|
|
62
|
+
cardColorEnd: string;
|
|
63
|
+
cardBasePlateColor: string;
|
|
64
|
+
cardBasePlateBorder: string;
|
|
65
|
+
enableLargeFont: boolean;
|
|
66
|
+
font: string;
|
|
67
|
+
filter: {};
|
|
68
|
+
debug: {};
|
|
69
|
+
dynamicDebugMode: boolean;
|
|
70
|
+
}
|
|
71
|
+
declare const Config: Schema<Config>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { Config, apply, inject, name, usage };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,70 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Context, ForkScope, Schema, Service } from "koishi";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
declare const inject: string[];
|
|
5
|
+
declare const name = "bilibili-notify";
|
|
6
|
+
declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
|
|
5
7
|
declare module "koishi" {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
interface Context {
|
|
9
|
+
sm: ServerManager;
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
declare class ServerManager extends Service {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
servers: ForkScope[];
|
|
14
|
+
constructor(ctx: Context);
|
|
15
|
+
protected start(): void | Promise<void>;
|
|
16
|
+
registerPlugin: () => boolean;
|
|
17
|
+
disposePlugin: () => Promise<boolean>;
|
|
18
|
+
restartPlugin: () => Promise<boolean>;
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
declare function apply(ctx: Context, config: Config): void;
|
|
21
|
+
interface Config {
|
|
22
|
+
require: {};
|
|
23
|
+
key: string;
|
|
24
|
+
master: {};
|
|
25
|
+
basicSettings: {};
|
|
26
|
+
userAgent: string;
|
|
27
|
+
subTitle: {};
|
|
28
|
+
sub: Array<{
|
|
29
|
+
name: string;
|
|
30
|
+
uid: string;
|
|
31
|
+
dynamic: boolean;
|
|
32
|
+
live: boolean;
|
|
33
|
+
card: {};
|
|
34
|
+
target: Array<{
|
|
35
|
+
channelArr: Array<{
|
|
36
|
+
channelId: string;
|
|
29
37
|
dynamic: boolean;
|
|
30
38
|
live: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
live: boolean;
|
|
37
|
-
liveGuardBuy: boolean;
|
|
38
|
-
atAll: boolean;
|
|
39
|
-
bot: string;
|
|
40
|
-
}>;
|
|
41
|
-
platform: string;
|
|
42
|
-
}>;
|
|
39
|
+
liveGuardBuy: boolean;
|
|
40
|
+
atAll: boolean;
|
|
41
|
+
bot: string;
|
|
42
|
+
}>;
|
|
43
|
+
platform: string;
|
|
43
44
|
}>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
45
|
+
}>;
|
|
46
|
+
dynamic: {};
|
|
47
|
+
dynamicUrl: boolean;
|
|
48
|
+
dynamicVideoUrlToBV: boolean;
|
|
49
|
+
pushImgsInDynamic: boolean;
|
|
50
|
+
live: {};
|
|
51
|
+
liveDetectType: "WS" | "API";
|
|
52
|
+
restartPush: boolean;
|
|
53
|
+
pushTime: number;
|
|
54
|
+
customLiveStart: string;
|
|
55
|
+
customLive: string;
|
|
56
|
+
customLiveEnd: string;
|
|
57
|
+
followerDisplay: boolean;
|
|
58
|
+
hideDesc: boolean;
|
|
59
|
+
style: {};
|
|
60
|
+
removeBorder: boolean;
|
|
61
|
+
cardColorStart: string;
|
|
62
|
+
cardColorEnd: string;
|
|
63
|
+
cardBasePlateColor: string;
|
|
64
|
+
cardBasePlateBorder: string;
|
|
65
|
+
enableLargeFont: boolean;
|
|
66
|
+
font: string;
|
|
67
|
+
filter: {};
|
|
68
|
+
debug: {};
|
|
69
|
+
dynamicDebugMode: boolean;
|
|
68
70
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
declare const Config: Schema<Config>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { Config, apply, inject, name, usage };
|