koishi-plugin-bilibili-notify 3.3.0-rc.0 → 3.3.1-alpha.0
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 +14 -5
- package/lib/index.d.ts +14 -5
- package/lib/index.js +135 -104
- package/lib/index.mjs +135 -104
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/index.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ interface BAConfig {
|
|
|
17
17
|
live: boolean;
|
|
18
18
|
liveAtAll: boolean;
|
|
19
19
|
liveGuardBuy: boolean;
|
|
20
|
+
wordcloud: boolean;
|
|
20
21
|
platform: string;
|
|
21
22
|
target: string;
|
|
22
23
|
}>;
|
|
@@ -27,8 +28,8 @@ interface BAConfig {
|
|
|
27
28
|
pushImgsInDynamic: boolean;
|
|
28
29
|
live: {};
|
|
29
30
|
liveDetectType: "WS" | "API";
|
|
30
|
-
|
|
31
|
-
liveSummary: string
|
|
31
|
+
wordcloudStopWords: string;
|
|
32
|
+
liveSummary: Array<string>;
|
|
32
33
|
restartPush: boolean;
|
|
33
34
|
pushTime: number;
|
|
34
35
|
customLiveStart: string;
|
|
@@ -57,6 +58,7 @@ type Channel = {
|
|
|
57
58
|
live: boolean;
|
|
58
59
|
liveAtAll: boolean;
|
|
59
60
|
liveGuardBuy: boolean;
|
|
61
|
+
wordcloud: boolean;
|
|
60
62
|
bot: string;
|
|
61
63
|
};
|
|
62
64
|
type ChannelArr = Array<Channel>;
|
|
@@ -78,14 +80,21 @@ type SubLiveMsg = {
|
|
|
78
80
|
customLive?: string;
|
|
79
81
|
customLiveEnd?: string;
|
|
80
82
|
};
|
|
81
|
-
type
|
|
83
|
+
type SubLiveSummary = {
|
|
84
|
+
enable: boolean;
|
|
85
|
+
liveSummary?: string;
|
|
86
|
+
};
|
|
87
|
+
type Subscription = {
|
|
82
88
|
uid: string;
|
|
83
89
|
dynamic: boolean;
|
|
84
90
|
live: boolean;
|
|
91
|
+
wordcloud: boolean;
|
|
85
92
|
target: Target;
|
|
86
93
|
card: SubCard;
|
|
87
94
|
liveMsg: SubLiveMsg;
|
|
88
|
-
|
|
95
|
+
liveSummary: SubLiveSummary;
|
|
96
|
+
};
|
|
97
|
+
type Subscriptions = Record<string, Subscription>;
|
|
89
98
|
//#endregion
|
|
90
99
|
//#region src/index.d.ts
|
|
91
100
|
declare const inject: string[];
|
|
@@ -93,7 +102,7 @@ declare const name = "bilibili-notify";
|
|
|
93
102
|
declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
|
|
94
103
|
declare module "koishi" {
|
|
95
104
|
interface Context {
|
|
96
|
-
|
|
105
|
+
"bilibili-notify": ServerManager;
|
|
97
106
|
}
|
|
98
107
|
interface Events {
|
|
99
108
|
"bilibili-notify/advanced-sub"(subs: Subscriptions): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface BAConfig {
|
|
|
17
17
|
live: boolean;
|
|
18
18
|
liveAtAll: boolean;
|
|
19
19
|
liveGuardBuy: boolean;
|
|
20
|
+
wordcloud: boolean;
|
|
20
21
|
platform: string;
|
|
21
22
|
target: string;
|
|
22
23
|
}>;
|
|
@@ -27,8 +28,8 @@ interface BAConfig {
|
|
|
27
28
|
pushImgsInDynamic: boolean;
|
|
28
29
|
live: {};
|
|
29
30
|
liveDetectType: "WS" | "API";
|
|
30
|
-
|
|
31
|
-
liveSummary: string
|
|
31
|
+
wordcloudStopWords: string;
|
|
32
|
+
liveSummary: Array<string>;
|
|
32
33
|
restartPush: boolean;
|
|
33
34
|
pushTime: number;
|
|
34
35
|
customLiveStart: string;
|
|
@@ -57,6 +58,7 @@ type Channel = {
|
|
|
57
58
|
live: boolean;
|
|
58
59
|
liveAtAll: boolean;
|
|
59
60
|
liveGuardBuy: boolean;
|
|
61
|
+
wordcloud: boolean;
|
|
60
62
|
bot: string;
|
|
61
63
|
};
|
|
62
64
|
type ChannelArr = Array<Channel>;
|
|
@@ -78,14 +80,21 @@ type SubLiveMsg = {
|
|
|
78
80
|
customLive?: string;
|
|
79
81
|
customLiveEnd?: string;
|
|
80
82
|
};
|
|
81
|
-
type
|
|
83
|
+
type SubLiveSummary = {
|
|
84
|
+
enable: boolean;
|
|
85
|
+
liveSummary?: string;
|
|
86
|
+
};
|
|
87
|
+
type Subscription = {
|
|
82
88
|
uid: string;
|
|
83
89
|
dynamic: boolean;
|
|
84
90
|
live: boolean;
|
|
91
|
+
wordcloud: boolean;
|
|
85
92
|
target: Target;
|
|
86
93
|
card: SubCard;
|
|
87
94
|
liveMsg: SubLiveMsg;
|
|
88
|
-
|
|
95
|
+
liveSummary: SubLiveSummary;
|
|
96
|
+
};
|
|
97
|
+
type Subscriptions = Record<string, Subscription>;
|
|
89
98
|
//#endregion
|
|
90
99
|
//#region src/index.d.ts
|
|
91
100
|
declare const inject: string[];
|
|
@@ -93,7 +102,7 @@ declare const name = "bilibili-notify";
|
|
|
93
102
|
declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
|
|
94
103
|
declare module "koishi" {
|
|
95
104
|
interface Context {
|
|
96
|
-
|
|
105
|
+
"bilibili-notify": ServerManager;
|
|
97
106
|
}
|
|
98
107
|
interface Events {
|
|
99
108
|
"bilibili-notify/advanced-sub"(subs: Subscriptions): void;
|