koishi-plugin-best-cave 1.1.5 → 1.3.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 +10 -9
- package/lib/index.js +1151 -526
- package/lib/utils/HashStorage.d.ts +34 -0
- package/lib/utils/ImageHasher.d.ts +27 -0
- package/lib/utils/fileHandler.d.ts +19 -0
- package/lib/utils/idManager.d.ts +17 -0
- package/package.json +8 -2
- package/readme.md +29 -8
package/lib/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Context, Schema } from 'koishi';
|
|
2
2
|
export declare const name = "best-cave";
|
|
3
3
|
export declare const inject: string[];
|
|
4
|
+
/**
|
|
5
|
+
* 插件配置项
|
|
6
|
+
* @type {Schema}
|
|
7
|
+
*/
|
|
4
8
|
export declare const Config: Schema<Config>;
|
|
9
|
+
/**
|
|
10
|
+
* 插件主入口
|
|
11
|
+
* @param {Context} ctx - Koishi上下文
|
|
12
|
+
* @param {Config} config - 插件配置
|
|
13
|
+
*/
|
|
5
14
|
export declare function apply(ctx: Context, config: Config): Promise<void>;
|
|
6
|
-
export interface User {
|
|
7
|
-
userId: string;
|
|
8
|
-
username: string;
|
|
9
|
-
nickname?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface getStrangerInfo {
|
|
12
|
-
user_id: string;
|
|
13
|
-
nickname: string;
|
|
14
|
-
}
|
|
15
15
|
export interface Config {
|
|
16
16
|
manager: string[];
|
|
17
17
|
number: number;
|
|
@@ -23,4 +23,5 @@ export interface Config {
|
|
|
23
23
|
whitelist: string[];
|
|
24
24
|
enablePagination: boolean;
|
|
25
25
|
itemsPerPage: number;
|
|
26
|
+
duplicateThreshold: number;
|
|
26
27
|
}
|