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.
@@ -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 { type Context, type ForkScope, Schema, Service } from "koishi";
2
- export declare const inject: string[];
3
- export declare const name = "bilibili-notify";
4
- export declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
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
- interface Context {
7
- sm: ServerManager;
8
- }
8
+ interface Context {
9
+ sm: ServerManager;
10
+ }
9
11
  }
10
12
  declare class ServerManager extends Service {
11
- servers: ForkScope[];
12
- constructor(ctx: Context);
13
- protected start(): void | Promise<void>;
14
- registerPlugin: () => boolean;
15
- disposePlugin: () => Promise<boolean>;
16
- restartPlugin: () => Promise<boolean>;
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
- export declare function apply(ctx: Context, config: Config): void;
19
- export interface Config {
20
- require: {};
21
- key: string;
22
- master: {};
23
- basicSettings: {};
24
- userAgent: string;
25
- subTitle: {};
26
- sub: Array<{
27
- name: string;
28
- uid: string;
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
- card: {};
32
- target: Array<{
33
- channelArr: Array<{
34
- channelId: string;
35
- dynamic: boolean;
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
- dynamic: {};
45
- dynamicUrl: boolean;
46
- dynamicVideoUrlToBV: boolean;
47
- pushImgsInDynamic: boolean;
48
- live: {};
49
- liveDetectType: "WS" | "API";
50
- restartPush: boolean;
51
- pushTime: number;
52
- customLiveStart: string;
53
- customLive: string;
54
- customLiveEnd: string;
55
- followerDisplay: boolean;
56
- hideDesc: boolean;
57
- style: {};
58
- removeBorder: boolean;
59
- cardColorStart: string;
60
- cardColorEnd: string;
61
- cardBasePlateColor: string;
62
- cardBasePlateBorder: string;
63
- enableLargeFont: boolean;
64
- font: string;
65
- filter: {};
66
- debug: {};
67
- dynamicDebugMode: boolean;
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
- export declare const Config: Schema<Config>;
70
- export {};
71
+ declare const Config: Schema<Config>;
72
+ //#endregion
73
+ export { Config, apply, inject, name, usage };