koishi-plugin-bilibili-notify 3.2.7-alpha.1 → 3.2.8-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 CHANGED
@@ -1,24 +1,7 @@
1
1
  import { Context, ForkScope, Schema, Service } from "koishi";
2
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 {
3
+ //#region src/config.d.ts
4
+ interface BAConfig {
22
5
  require: {};
23
6
  key: string;
24
7
  master: {};
@@ -31,6 +14,7 @@ interface Config {
31
14
  dynamic: boolean;
32
15
  live: boolean;
33
16
  card: {};
17
+ liveMsg: {};
34
18
  target: Array<{
35
19
  channelArr: Array<{
36
20
  channelId: string;
@@ -69,6 +53,25 @@ interface Config {
69
53
  debug: {};
70
54
  dynamicDebugMode: boolean;
71
55
  }
72
- declare const Config: Schema<Config>;
56
+ //#endregion
57
+ //#region src/index.d.ts
58
+ declare const inject: string[];
59
+ declare const name = "bilibili-notify";
60
+ declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
61
+ declare module "koishi" {
62
+ interface Context {
63
+ sm: ServerManager;
64
+ }
65
+ }
66
+ declare class ServerManager extends Service {
67
+ servers: ForkScope[];
68
+ constructor(ctx: Context);
69
+ protected start(): void | Promise<void>;
70
+ registerPlugin: () => boolean;
71
+ disposePlugin: () => Promise<boolean>;
72
+ restartPlugin: () => Promise<boolean>;
73
+ }
74
+ declare function apply(ctx: Context, config: BAConfig): void;
75
+ declare const Config: Schema<BAConfig>;
73
76
  //#endregion
74
77
  export { Config, apply, inject, name, usage };
package/lib/index.d.ts CHANGED
@@ -1,24 +1,7 @@
1
1
  import { Context, ForkScope, Schema, Service } from "koishi";
2
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 {
3
+ //#region src/config.d.ts
4
+ interface BAConfig {
22
5
  require: {};
23
6
  key: string;
24
7
  master: {};
@@ -31,6 +14,7 @@ interface Config {
31
14
  dynamic: boolean;
32
15
  live: boolean;
33
16
  card: {};
17
+ liveMsg: {};
34
18
  target: Array<{
35
19
  channelArr: Array<{
36
20
  channelId: string;
@@ -69,6 +53,25 @@ interface Config {
69
53
  debug: {};
70
54
  dynamicDebugMode: boolean;
71
55
  }
72
- declare const Config: Schema<Config>;
56
+ //#endregion
57
+ //#region src/index.d.ts
58
+ declare const inject: string[];
59
+ declare const name = "bilibili-notify";
60
+ declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
61
+ declare module "koishi" {
62
+ interface Context {
63
+ sm: ServerManager;
64
+ }
65
+ }
66
+ declare class ServerManager extends Service {
67
+ servers: ForkScope[];
68
+ constructor(ctx: Context);
69
+ protected start(): void | Promise<void>;
70
+ registerPlugin: () => boolean;
71
+ disposePlugin: () => Promise<boolean>;
72
+ restartPlugin: () => Promise<boolean>;
73
+ }
74
+ declare function apply(ctx: Context, config: BAConfig): void;
75
+ declare const Config: Schema<BAConfig>;
73
76
  //#endregion
74
77
  export { Config, apply, inject, name, usage };