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.
package/lib/database.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import type { Context } from "koishi";
2
- declare module "koishi" {
3
- interface Tables {
4
- loginBili: LoginBili;
5
- }
6
- }
7
- export interface LoginBili {
8
- id: number;
9
- bili_cookies: string;
10
- bili_refresh_token: string;
11
- dynamic_group_id: string;
12
- }
13
- export declare const name = "Database";
14
- export declare function apply(ctx: Context): void;
package/lib/database.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.name = void 0;
4
- exports.apply = apply;
5
- exports.name = "Database";
6
- function apply(ctx) {
7
- // 新增LoginBili表
8
- ctx.model.extend("loginBili", {
9
- id: "unsigned",
10
- bili_cookies: "text",
11
- bili_refresh_token: "text",
12
- dynamic_group_id: "string",
13
- });
14
- }
Binary file
@@ -1,52 +0,0 @@
1
- import { type Context, Schema, Service } from "koishi";
2
- import type { Dynamic, RichTextNode } from "./type";
3
- declare module "koishi" {
4
- interface Context {
5
- gi: GenerateImg;
6
- }
7
- }
8
- declare class GenerateImg extends Service {
9
- static inject: string[];
10
- giConfig: GenerateImg.Config;
11
- constructor(ctx: Context, config: GenerateImg.Config);
12
- imgHandler(html: string): Promise<Buffer<ArrayBufferLike>>;
13
- generateLiveImg(data: any, username: string, userface: string, followerDisplay: string, liveStatus: number, { cardColorStart, cardColorEnd, cardBasePlateColor, cardBasePlateBorder, }?: {
14
- cardColorStart?: string;
15
- cardColorEnd?: string;
16
- cardBasePlateColor?: string;
17
- cardBasePlateBorder?: string;
18
- }): Promise<Buffer<ArrayBufferLike>>;
19
- richTextParser(rt: RichTextNode, title?: string): string;
20
- generateDynamicImg(data: Dynamic, { cardColorStart, cardColorEnd, cardBasePlateColor, cardBasePlateBorder, }?: {
21
- cardColorStart?: string;
22
- cardColorEnd?: string;
23
- cardBasePlateColor?: string;
24
- cardBasePlateBorder?: string;
25
- }): Promise<Buffer<ArrayBufferLike>>;
26
- getLiveStatus(time: string, liveStatus: number): Promise<[string, string, boolean]>;
27
- getTimeDifference(dateString: string): Promise<string>;
28
- unixTimestampToString(timestamp: number): string;
29
- }
30
- declare namespace GenerateImg {
31
- interface Config {
32
- filter: {
33
- enable: boolean;
34
- notify: boolean;
35
- regex: string;
36
- keywords: Array<string>;
37
- forward: boolean;
38
- article: boolean;
39
- };
40
- removeBorder: boolean;
41
- cardColorStart: string;
42
- cardColorEnd: string;
43
- cardBasePlateColor: string;
44
- cardBasePlateBorder: string;
45
- enableLargeFont: boolean;
46
- font: string;
47
- hideDesc: boolean;
48
- followerDisplay: boolean;
49
- }
50
- const Config: Schema<Config>;
51
- }
52
- export default GenerateImg;