koishi-plugin-best-cave 1.1.5 → 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 +25 -0
- package/lib/index.js +690 -474
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 回声洞插件 - 主文件
|
|
3
|
+
* @module best-cave
|
|
4
|
+
* @description 提供回声洞功能的Koishi插件,支持文本、图片、视频投稿与管理
|
|
5
|
+
*/
|
|
1
6
|
import { Context, Schema } from 'koishi';
|
|
2
7
|
export declare const name = "best-cave";
|
|
3
8
|
export declare const inject: string[];
|
|
9
|
+
/**
|
|
10
|
+
* 插件配置模式定义
|
|
11
|
+
* @description 定义插件的所有配置项及其验证规则
|
|
12
|
+
* manager: 管理员用户ID列表
|
|
13
|
+
* blacklist: 黑名单用户ID列表
|
|
14
|
+
* whitelist: 白名单用户ID列表(可跳过审核)
|
|
15
|
+
* number: 命令冷却时间(秒)
|
|
16
|
+
* enableAudit: 是否启用投稿审核
|
|
17
|
+
* allowVideo: 是否允许视频投稿
|
|
18
|
+
* videoMaxSize: 视频文件大小限制(MB)
|
|
19
|
+
* imageMaxSize: 图片文件大小限制(MB)
|
|
20
|
+
* enablePagination: 是否启用分页显示
|
|
21
|
+
* itemsPerPage: 每页显示条目数
|
|
22
|
+
*/
|
|
4
23
|
export declare const Config: Schema<Config>;
|
|
24
|
+
/**
|
|
25
|
+
* 主插件入口
|
|
26
|
+
* @param ctx Koishi上下文,提供各种API接口
|
|
27
|
+
* @param config 插件配置对象
|
|
28
|
+
* @description 初始化插件环境,注册命令与处理函数
|
|
29
|
+
*/
|
|
5
30
|
export declare function apply(ctx: Context, config: Config): Promise<void>;
|
|
6
31
|
export interface User {
|
|
7
32
|
userId: string;
|