koishi-plugin-bilibili-videolink-analysis 1.1.25 → 1.2.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.ts CHANGED
@@ -1,3 +1,94 @@
1
- /*
2
- 喵~
3
- */
1
+ import { Schema, Context } from "koishi";
2
+ export declare const name = "bilibili-videolink-analysis";
3
+ export declare const inject: {
4
+ optional: string[];
5
+ };
6
+ export declare const usage = "\n\n<h2>\u2192 <a href=\"https://www.npmjs.com/package/koishi-plugin-bilibili-videolink-analysis\" target=\"_blank\">\u53EF\u4EE5\u70B9\u51FB\u8FD9\u91CC\u67E5\u770B\u8BE6\u7EC6\u7684\u6587\u6863\u8BF4\u660E\u2728</a></h2>\n\n\u2728 \u53EA\u9700\u5F00\u542F\u63D2\u4EF6\uFF0C\u5C31\u53EF\u4EE5\u89E3\u6790B\u7AD9\u89C6\u9891\u7684\u94FE\u63A5\u5566~ \u2728\n\n\u5411bot\u53D1\u9001B\u7AD9\u89C6\u9891\u94FE\u63A5\u5427~\n\n\u4F1A\u8FD4\u56DE\u89C6\u9891\u4FE1\u606F\u4E0E\u89C6\u9891\u54E6\n\n---\n\n#### \u26A0\uFE0F **\u5982\u679C\u4F60\u4F7F\u7528\u4E0D\u4E86\u672C\u9879\u76EE\uFF0C\u8BF7\u4F18\u5148\u68C0\u67E5\uFF1A** \u26A0\uFE0F\n#### \u82E5\u65E0\u6CE8\u518C\u7684\u6307\u4EE4\uFF0C\u8BF7\u5173\u5F00\u4E00\u4E0B[command\u63D2\u4EF6](/market?keyword=commands+email:shigma10826@gmail.com)\uFF08\u6CA1\u6709\u6307\u4EE4\u4E5F\u4E0D\u5F71\u54CD\u89E3\u6790\u522B\u4EBA\u7684\u94FE\u63A5\uFF09\n#### \u89C6\u9891\u5185\u5BB9\u662F\u5426\u4E3AB\u7AD9\u7684\u5927\u4F1A\u5458\u4E13\u5C5E\u89C6\u9891/\u4ED8\u8D39\u89C6\u9891/\u5145\u7535\u4E13\u5C5E\u89C6\u9891\n#### \u63A5\u5165\u65B9\u6CD5\u662F\u5426\u652F\u6301\u83B7\u53D6\u7F51\u5740\u94FE\u63A5/\u5C0F\u7A0B\u5E8F\u5361\u7247\u6D88\u606F\n#### \u63A5\u5165\u65B9\u6CD5\u662F\u5426\u652F\u6301\u89C6\u9891\u5143\u7D20\u7684\u53D1\u9001\n#### \u53D1\u9001\u89C6\u9891\u8D85\u65F6/\u5176\u4ED6\u7F51\u7EDC\u95EE\u9898\n#### \u89C6\u9891\u5185\u5BB9\u88AB\u5E73\u53F0\u5C4F\u853D/\u5176\u4ED6\u5E73\u53F0\u56E0\u7D20\n\n---\n\n### \u6CE8\u610F\uFF0C\u70B9\u64AD\u529F\u80FD\u9700\u8981\u4F7F\u7528 puppeteer \u670D\u52A1\n\n\u70B9\u64AD\u529F\u80FD\u662F\u4E3A\u4E86\u65B9\u4FBF\u7FA4\u53CB\u4E00\u8D77\u5237B\u7AD9\u54E6~\n\n\u6BD4\u5982\uFF1A\u641C\u7D22 \u201C\u9060\u3044\u7A7A\u3078\u201D \u7684\u7B2C\u4E8C\u9875\uFF0C\u5E76\u4E14\u7ED3\u679C\u4EE5\u8BED\u97F3\u683C\u5F0F\u8FD4\u56DE\n\n\u793A\u4F8B\uFF1A`\u70B9\u64AD \u9060\u3044\u7A7A\u3078 -a -p 2` \n\n\n---\n\n### \u7279\u522B\u9E23\u8C22 \uD83D\uDC96\n\n\u7279\u522B\u9E23\u8C22\u4EE5\u4E0B\u9879\u76EE\u7684\u652F\u6301\uFF1A\n\n- [@summonhim/koishi-plugin-bili-parser](/market?keyword=bili-parser)\n\n---\n\n";
7
+ export interface Config {
8
+ demand: boolean;
9
+ timeout?: number;
10
+ point?: [number, number];
11
+ enable?: boolean;
12
+ enablebilianalysis: boolean;
13
+ waitTip_Switch?: string | null;
14
+ linktextParsing: boolean;
15
+ VideoParsing_ToLink: '1' | '2' | '3' | '4' | '5';
16
+ BVnumberParsing: boolean;
17
+ MinimumTimeInterval: number;
18
+ Minimumduration: number;
19
+ Minimumduration_tip: 'return' | {
20
+ tipcontent: string;
21
+ tipanalysis: boolean;
22
+ } | null;
23
+ Maximumduration: number;
24
+ Maximumduration_tip: 'return' | {
25
+ tipcontent: string;
26
+ tipanalysis: boolean;
27
+ } | null;
28
+ parseLimit: number;
29
+ useNumeral: boolean;
30
+ showError: boolean;
31
+ bVideoIDPreference: "bv" | "av";
32
+ bVideo_area: string;
33
+ bVideoShowLink: boolean;
34
+ bVideoShowIntroductionTofixed: number;
35
+ isfigure: boolean;
36
+ filebuffer: boolean;
37
+ middleware: boolean;
38
+ userAgent: string;
39
+ pageclose: boolean;
40
+ loggerinfo: boolean;
41
+ loggerinfofulljson: boolean;
42
+ }
43
+ export declare const Config: Schema<Schemastery.ObjectS<{
44
+ demand: Schema<boolean, boolean>;
45
+ }> | Schemastery.ObjectS<{
46
+ enablebilianalysis: Schema<boolean, boolean>;
47
+ }> | Schemastery.ObjectS<{
48
+ pageclose: Schema<boolean, boolean>;
49
+ loggerinfo: Schema<boolean, boolean>;
50
+ loggerinfofulljson: Schema<boolean, boolean>;
51
+ }> | ({
52
+ parseLimit?: number;
53
+ useNumeral?: boolean;
54
+ showError?: boolean;
55
+ bVideoIDPreference?: "bv" | "av";
56
+ bVideo_area?: string;
57
+ bVideoShowLink?: boolean;
58
+ bVideoShowIntroductionTofixed?: number;
59
+ } & import("cosmokit").Dict) | ({
60
+ isfigure?: boolean;
61
+ filebuffer?: boolean;
62
+ middleware?: boolean;
63
+ userAgent?: string;
64
+ } & import("cosmokit").Dict), {
65
+ demand: boolean;
66
+ } & import("cosmokit").Dict & ({
67
+ enablebilianalysis: boolean;
68
+ } & ({
69
+ pageclose: boolean;
70
+ loggerinfo: boolean;
71
+ loggerinfofulljson: boolean;
72
+ } & (Schemastery.ObjectT<{
73
+ enablebilianalysis: Schema<false, false>;
74
+ }> | Schemastery.ObjectT<{
75
+ enablebilianalysis: Schema<true, true>;
76
+ Minimumduration: Schema<number, number>;
77
+ Minimumduration_tip: Schema<any, any>;
78
+ Maximumduration: Schema<number, number>;
79
+ Maximumduration_tip: Schema<any, any>;
80
+ } | {
81
+ parseLimit: Schema<number, number>;
82
+ useNumeral: Schema<boolean, boolean>;
83
+ showError: Schema<boolean, boolean>;
84
+ bVideoIDPreference: Schema<"bv" | "av", "bv" | "av">;
85
+ bVideo_area: Schema<string, string>;
86
+ bVideoShowLink: Schema<boolean, boolean>;
87
+ bVideoShowIntroductionTofixed: Schema<number, number>;
88
+ } | {
89
+ isfigure: Schema<boolean, boolean>;
90
+ filebuffer: Schema<boolean, boolean>;
91
+ middleware: Schema<boolean, boolean>;
92
+ userAgent: Schema<string, string>;
93
+ }>)))>;
94
+ export declare function apply(ctx: Context, config: Config): void;