koishi-plugin-bilibili-notify 3.3.0-rc.0 → 3.3.1-alpha.1

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 CHANGED
@@ -17,6 +17,8 @@ interface BAConfig {
17
17
  live: boolean;
18
18
  liveAtAll: boolean;
19
19
  liveGuardBuy: boolean;
20
+ wordcloud: boolean;
21
+ liveSummary: boolean;
20
22
  platform: string;
21
23
  target: string;
22
24
  }>;
@@ -27,8 +29,8 @@ interface BAConfig {
27
29
  pushImgsInDynamic: boolean;
28
30
  live: {};
29
31
  liveDetectType: "WS" | "API";
30
- wordcloud: boolean;
31
- liveSummary: string;
32
+ wordcloudStopWords: string;
33
+ liveSummary: Array<string>;
32
34
  restartPush: boolean;
33
35
  pushTime: number;
34
36
  customLiveStart: string;
@@ -57,6 +59,8 @@ type Channel = {
57
59
  live: boolean;
58
60
  liveAtAll: boolean;
59
61
  liveGuardBuy: boolean;
62
+ wordcloud: boolean;
63
+ liveSummary: boolean;
60
64
  bot: string;
61
65
  };
62
66
  type ChannelArr = Array<Channel>;
@@ -65,27 +69,33 @@ type TargetItem = {
65
69
  platform: string;
66
70
  };
67
71
  type Target = Array<TargetItem>;
68
- type SubCard = {
72
+ type CustomCardStyle = {
69
73
  enable: boolean;
70
74
  cardColorStart?: string;
71
75
  cardColorEnd?: string;
72
76
  cardBasePlateColor?: string;
73
77
  cardBasePlateBorder?: string;
74
78
  };
75
- type SubLiveMsg = {
79
+ type CustomLiveMsg = {
76
80
  enable: boolean;
77
81
  customLiveStart?: string;
78
82
  customLive?: string;
79
83
  customLiveEnd?: string;
80
84
  };
81
- type Subscriptions = Record<string, {
85
+ type CustomLiveSummary = {
86
+ enable: boolean;
87
+ liveSummary?: string;
88
+ };
89
+ type Subscription = {
82
90
  uid: string;
83
91
  dynamic: boolean;
84
92
  live: boolean;
85
93
  target: Target;
86
- card: SubCard;
87
- liveMsg: SubLiveMsg;
88
- }>;
94
+ customCardStyle: CustomCardStyle;
95
+ customLiveMsg: CustomLiveMsg;
96
+ customLiveSummary: CustomLiveSummary;
97
+ };
98
+ type Subscriptions = Record<string, Subscription>;
89
99
  //#endregion
90
100
  //#region src/index.d.ts
91
101
  declare const inject: string[];
@@ -93,7 +103,7 @@ declare const name = "bilibili-notify";
93
103
  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
104
  declare module "koishi" {
95
105
  interface Context {
96
- sm: ServerManager;
106
+ "bilibili-notify": ServerManager;
97
107
  }
98
108
  interface Events {
99
109
  "bilibili-notify/advanced-sub"(subs: Subscriptions): void;
package/lib/index.d.ts CHANGED
@@ -17,6 +17,8 @@ interface BAConfig {
17
17
  live: boolean;
18
18
  liveAtAll: boolean;
19
19
  liveGuardBuy: boolean;
20
+ wordcloud: boolean;
21
+ liveSummary: boolean;
20
22
  platform: string;
21
23
  target: string;
22
24
  }>;
@@ -27,8 +29,8 @@ interface BAConfig {
27
29
  pushImgsInDynamic: boolean;
28
30
  live: {};
29
31
  liveDetectType: "WS" | "API";
30
- wordcloud: boolean;
31
- liveSummary: string;
32
+ wordcloudStopWords: string;
33
+ liveSummary: Array<string>;
32
34
  restartPush: boolean;
33
35
  pushTime: number;
34
36
  customLiveStart: string;
@@ -57,6 +59,8 @@ type Channel = {
57
59
  live: boolean;
58
60
  liveAtAll: boolean;
59
61
  liveGuardBuy: boolean;
62
+ wordcloud: boolean;
63
+ liveSummary: boolean;
60
64
  bot: string;
61
65
  };
62
66
  type ChannelArr = Array<Channel>;
@@ -65,27 +69,33 @@ type TargetItem = {
65
69
  platform: string;
66
70
  };
67
71
  type Target = Array<TargetItem>;
68
- type SubCard = {
72
+ type CustomCardStyle = {
69
73
  enable: boolean;
70
74
  cardColorStart?: string;
71
75
  cardColorEnd?: string;
72
76
  cardBasePlateColor?: string;
73
77
  cardBasePlateBorder?: string;
74
78
  };
75
- type SubLiveMsg = {
79
+ type CustomLiveMsg = {
76
80
  enable: boolean;
77
81
  customLiveStart?: string;
78
82
  customLive?: string;
79
83
  customLiveEnd?: string;
80
84
  };
81
- type Subscriptions = Record<string, {
85
+ type CustomLiveSummary = {
86
+ enable: boolean;
87
+ liveSummary?: string;
88
+ };
89
+ type Subscription = {
82
90
  uid: string;
83
91
  dynamic: boolean;
84
92
  live: boolean;
85
93
  target: Target;
86
- card: SubCard;
87
- liveMsg: SubLiveMsg;
88
- }>;
94
+ customCardStyle: CustomCardStyle;
95
+ customLiveMsg: CustomLiveMsg;
96
+ customLiveSummary: CustomLiveSummary;
97
+ };
98
+ type Subscriptions = Record<string, Subscription>;
89
99
  //#endregion
90
100
  //#region src/index.d.ts
91
101
  declare const inject: string[];
@@ -93,7 +103,7 @@ declare const name = "bilibili-notify";
93
103
  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
104
  declare module "koishi" {
95
105
  interface Context {
96
- sm: ServerManager;
106
+ "bilibili-notify": ServerManager;
97
107
  }
98
108
  interface Events {
99
109
  "bilibili-notify/advanced-sub"(subs: Subscriptions): void;