koishi-plugin-class-score-system 1.0.1 → 1.0.3
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/package.json +1 -1
- package/lib/commands/menu.d.ts +0 -2
- package/lib/utils/constants.d.ts +0 -48
- package/lib/utils/image.d.ts +0 -10
package/package.json
CHANGED
package/lib/commands/menu.d.ts
DELETED
package/lib/utils/constants.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export declare const CONSTANTS: {
|
|
2
|
-
TOKEN_PATTERN: RegExp;
|
|
3
|
-
QQ_PATTERN: RegExp;
|
|
4
|
-
SCORE_MIN: number;
|
|
5
|
-
SCORE_MAX: number;
|
|
6
|
-
RANKING_DEFAULT_LIMIT: number;
|
|
7
|
-
RANKING_MAX_LIMIT: number;
|
|
8
|
-
SCORE_LOGS_DEFAULT_LIMIT: number;
|
|
9
|
-
SCORE_LOGS_MAX_LIMIT: number;
|
|
10
|
-
USERNAME_MAX_LENGTH: number;
|
|
11
|
-
DESCRIPTION_MAX_LENGTH: number;
|
|
12
|
-
};
|
|
13
|
-
export declare const ERROR_MESSAGES: {
|
|
14
|
-
readonly NO_SERVER_CONFIG: "未配置CSMS服务器,请先使用 /绑定服务器 命令配置";
|
|
15
|
-
readonly INVALID_TOKEN: "无效的Token格式,Token必须由数字和英文大写字母组成";
|
|
16
|
-
readonly INVALID_QQ: "无效的QQ号码格式";
|
|
17
|
-
readonly INVALID_SCORE: "分数必须在 -1000 到 1000 之间";
|
|
18
|
-
readonly INVALID_USERNAME: "用户名不能为空且长度不能超过50个字符";
|
|
19
|
-
readonly INVALID_DESCRIPTION: "描述信息长度不能超过255个字符";
|
|
20
|
-
readonly INVALID_LIMIT: "数量必须在 1 到 50 之间";
|
|
21
|
-
readonly SERVER_NOT_FOUND: "服务器未找到";
|
|
22
|
-
readonly USER_NOT_FOUND: "用户未找到";
|
|
23
|
-
readonly USER_ALREADY_BOUND: "该QQ号已绑定其他用户";
|
|
24
|
-
readonly USER_NOT_BOUND: "该QQ号未绑定任何用户";
|
|
25
|
-
readonly API_REQUEST_FAILED: "API请求失败";
|
|
26
|
-
readonly INSUFFICIENT_PERMISSION: "权限不足,仅管理员可执行此操作";
|
|
27
|
-
readonly BINDING_FAILED: "绑定失败";
|
|
28
|
-
readonly UNBINDING_FAILED: "解除绑定失败";
|
|
29
|
-
readonly CONFIGURATION_FAILED: "配置保存失败";
|
|
30
|
-
};
|
|
31
|
-
export declare const SUCCESS_MESSAGES: {
|
|
32
|
-
readonly SERVER_CONFIGURED: "服务器配置成功";
|
|
33
|
-
readonly SERVER_VALIDATED: "服务器配置验证成功";
|
|
34
|
-
readonly QQ_BOUND: "QQ绑定成功";
|
|
35
|
-
readonly QQ_UNBOUND: "QQ解除绑定成功";
|
|
36
|
-
readonly SCORE_ADJUSTED: "积分调整成功";
|
|
37
|
-
readonly USER_CREATED: "用户创建成功";
|
|
38
|
-
};
|
|
39
|
-
export declare const HELP_MESSAGES: {
|
|
40
|
-
readonly BIND_SERVER: "绑定CSMS服务器\n用法:/绑定服务器 <服务器地址> <管理员用户名> <管理员Token>\n示例:/绑定服务器 https://example.com admin ABC123";
|
|
41
|
-
readonly QUERY_SCORE: "查询积分\n用法:/查询积分 [用户名]\n示例:/查询积分 张三";
|
|
42
|
-
readonly ADJUST_SCORE: "调整积分\n用法:/调整积分 <用户名> <分数> <原因>\n示例:/调整积分 张三 +5 表现优秀";
|
|
43
|
-
readonly BIND_QQ: "绑定QQ\n用法:/绑定QQ <用户名>\n示例:/绑定QQ 张三";
|
|
44
|
-
readonly VIEW_BINDING: "查看绑定\n用法:/查看绑定 [用户名]\n示例:/查看绑定 张三";
|
|
45
|
-
readonly UNBIND_QQ: "解除绑定\n用法:/解除绑定 <QQ号>\n示例:/解除绑定 123456789";
|
|
46
|
-
readonly RANKING: "排行榜\n用法:/排行榜 [数量]\n示例:/排行榜 10";
|
|
47
|
-
readonly STATISTICS: "统计\n用法:/统计 [用户名]\n示例:/统计 张三";
|
|
48
|
-
};
|
package/lib/utils/image.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Context } from 'koishi';
|
|
2
|
-
export declare function generateImage(ctx: Context, html: string, options?: {
|
|
3
|
-
width?: number;
|
|
4
|
-
height?: number;
|
|
5
|
-
}): Promise<Buffer | null>;
|
|
6
|
-
export declare function sendImageOrText(ctx: Context, session: any, html: string, fallbackText: string, options?: {
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
}): Promise<void>;
|
|
10
|
-
export declare function getBaseStyles(): string;
|