koishi-plugin-bilibili-notify 3.2.10-alpha.1 → 3.2.11-alpha.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.mts +49 -14
- package/lib/index.d.ts +49 -14
- package/lib/index.js +430 -92056
- package/lib/index.mjs +409 -92056
- package/package.json +20 -19
- package/LICENSE +0 -9
package/lib/index.d.mts
CHANGED
|
@@ -8,24 +8,17 @@ interface BAConfig {
|
|
|
8
8
|
basicSettings: {};
|
|
9
9
|
userAgent: string;
|
|
10
10
|
subTitle: {};
|
|
11
|
-
|
|
11
|
+
advancedSub: boolean;
|
|
12
|
+
subs: Array<{
|
|
12
13
|
name: string;
|
|
13
14
|
uid: string;
|
|
14
15
|
dynamic: boolean;
|
|
16
|
+
dynamicAtAll: boolean;
|
|
15
17
|
live: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
channelId: string;
|
|
21
|
-
dynamic: boolean;
|
|
22
|
-
live: boolean;
|
|
23
|
-
liveGuardBuy: boolean;
|
|
24
|
-
atAll: boolean;
|
|
25
|
-
bot: string;
|
|
26
|
-
}>;
|
|
27
|
-
platform: string;
|
|
28
|
-
}>;
|
|
18
|
+
liveAtAll: boolean;
|
|
19
|
+
liveGuardBuy: boolean;
|
|
20
|
+
platform: string;
|
|
21
|
+
target: string;
|
|
29
22
|
}>;
|
|
30
23
|
dynamic: {};
|
|
31
24
|
dynamicUrl: boolean;
|
|
@@ -56,6 +49,44 @@ interface BAConfig {
|
|
|
56
49
|
dynamicDebugMode: boolean;
|
|
57
50
|
}
|
|
58
51
|
//#endregion
|
|
52
|
+
//#region src/type/index.d.ts
|
|
53
|
+
type Channel = {
|
|
54
|
+
channelId: string;
|
|
55
|
+
dynamic: boolean;
|
|
56
|
+
dynamicAtAll: boolean;
|
|
57
|
+
live: boolean;
|
|
58
|
+
liveAtAll: boolean;
|
|
59
|
+
liveGuardBuy: boolean;
|
|
60
|
+
bot: string;
|
|
61
|
+
};
|
|
62
|
+
type ChannelArr = Array<Channel>;
|
|
63
|
+
type TargetItem = {
|
|
64
|
+
channelArr: ChannelArr;
|
|
65
|
+
platform: string;
|
|
66
|
+
};
|
|
67
|
+
type Target = Array<TargetItem>;
|
|
68
|
+
type SubCard = {
|
|
69
|
+
enable: boolean;
|
|
70
|
+
cardColorStart?: string;
|
|
71
|
+
cardColorEnd?: string;
|
|
72
|
+
cardBasePlateColor?: string;
|
|
73
|
+
cardBasePlateBorder?: string;
|
|
74
|
+
};
|
|
75
|
+
type SubLiveMsg = {
|
|
76
|
+
enable: boolean;
|
|
77
|
+
customLiveStart?: string;
|
|
78
|
+
customLive?: string;
|
|
79
|
+
customLiveEnd?: string;
|
|
80
|
+
};
|
|
81
|
+
type Subscriptions = Record<string, {
|
|
82
|
+
uid: string;
|
|
83
|
+
dynamic: boolean;
|
|
84
|
+
live: boolean;
|
|
85
|
+
target: Target;
|
|
86
|
+
card: SubCard;
|
|
87
|
+
liveMsg: SubLiveMsg;
|
|
88
|
+
}>;
|
|
89
|
+
//#endregion
|
|
59
90
|
//#region src/index.d.ts
|
|
60
91
|
declare const inject: string[];
|
|
61
92
|
declare const name = "bilibili-notify";
|
|
@@ -64,6 +95,10 @@ declare module "koishi" {
|
|
|
64
95
|
interface Context {
|
|
65
96
|
sm: ServerManager;
|
|
66
97
|
}
|
|
98
|
+
interface Events {
|
|
99
|
+
"bilibili-notify/advanced-sub"(subs: Subscriptions): void;
|
|
100
|
+
"bilibili-notify/ready-to-recive"(): void;
|
|
101
|
+
}
|
|
67
102
|
}
|
|
68
103
|
declare class ServerManager extends Service {
|
|
69
104
|
servers: ForkScope[];
|
package/lib/index.d.ts
CHANGED
|
@@ -8,24 +8,17 @@ interface BAConfig {
|
|
|
8
8
|
basicSettings: {};
|
|
9
9
|
userAgent: string;
|
|
10
10
|
subTitle: {};
|
|
11
|
-
|
|
11
|
+
advancedSub: boolean;
|
|
12
|
+
subs: Array<{
|
|
12
13
|
name: string;
|
|
13
14
|
uid: string;
|
|
14
15
|
dynamic: boolean;
|
|
16
|
+
dynamicAtAll: boolean;
|
|
15
17
|
live: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
channelId: string;
|
|
21
|
-
dynamic: boolean;
|
|
22
|
-
live: boolean;
|
|
23
|
-
liveGuardBuy: boolean;
|
|
24
|
-
atAll: boolean;
|
|
25
|
-
bot: string;
|
|
26
|
-
}>;
|
|
27
|
-
platform: string;
|
|
28
|
-
}>;
|
|
18
|
+
liveAtAll: boolean;
|
|
19
|
+
liveGuardBuy: boolean;
|
|
20
|
+
platform: string;
|
|
21
|
+
target: string;
|
|
29
22
|
}>;
|
|
30
23
|
dynamic: {};
|
|
31
24
|
dynamicUrl: boolean;
|
|
@@ -56,6 +49,44 @@ interface BAConfig {
|
|
|
56
49
|
dynamicDebugMode: boolean;
|
|
57
50
|
}
|
|
58
51
|
//#endregion
|
|
52
|
+
//#region src/type/index.d.ts
|
|
53
|
+
type Channel = {
|
|
54
|
+
channelId: string;
|
|
55
|
+
dynamic: boolean;
|
|
56
|
+
dynamicAtAll: boolean;
|
|
57
|
+
live: boolean;
|
|
58
|
+
liveAtAll: boolean;
|
|
59
|
+
liveGuardBuy: boolean;
|
|
60
|
+
bot: string;
|
|
61
|
+
};
|
|
62
|
+
type ChannelArr = Array<Channel>;
|
|
63
|
+
type TargetItem = {
|
|
64
|
+
channelArr: ChannelArr;
|
|
65
|
+
platform: string;
|
|
66
|
+
};
|
|
67
|
+
type Target = Array<TargetItem>;
|
|
68
|
+
type SubCard = {
|
|
69
|
+
enable: boolean;
|
|
70
|
+
cardColorStart?: string;
|
|
71
|
+
cardColorEnd?: string;
|
|
72
|
+
cardBasePlateColor?: string;
|
|
73
|
+
cardBasePlateBorder?: string;
|
|
74
|
+
};
|
|
75
|
+
type SubLiveMsg = {
|
|
76
|
+
enable: boolean;
|
|
77
|
+
customLiveStart?: string;
|
|
78
|
+
customLive?: string;
|
|
79
|
+
customLiveEnd?: string;
|
|
80
|
+
};
|
|
81
|
+
type Subscriptions = Record<string, {
|
|
82
|
+
uid: string;
|
|
83
|
+
dynamic: boolean;
|
|
84
|
+
live: boolean;
|
|
85
|
+
target: Target;
|
|
86
|
+
card: SubCard;
|
|
87
|
+
liveMsg: SubLiveMsg;
|
|
88
|
+
}>;
|
|
89
|
+
//#endregion
|
|
59
90
|
//#region src/index.d.ts
|
|
60
91
|
declare const inject: string[];
|
|
61
92
|
declare const name = "bilibili-notify";
|
|
@@ -64,6 +95,10 @@ declare module "koishi" {
|
|
|
64
95
|
interface Context {
|
|
65
96
|
sm: ServerManager;
|
|
66
97
|
}
|
|
98
|
+
interface Events {
|
|
99
|
+
"bilibili-notify/advanced-sub"(subs: Subscriptions): void;
|
|
100
|
+
"bilibili-notify/ready-to-recive"(): void;
|
|
101
|
+
}
|
|
67
102
|
}
|
|
68
103
|
declare class ServerManager extends Service {
|
|
69
104
|
servers: ForkScope[];
|