koishi-plugin-ggcevo-game 2.0.2 → 2.0.4
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/LICENSE +21 -21
- package/lib/database.d.ts +3 -3
- package/lib/index.js +8 -7
- package/package.json +2 -2
- package/readme.md +5 -5
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 forgetmelody
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 forgetmelody
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/lib/database.d.ts
CHANGED
|
@@ -72,13 +72,13 @@ export interface RankRecord {
|
|
|
72
72
|
}
|
|
73
73
|
export interface PunishmentRecord {
|
|
74
74
|
id: number;
|
|
75
|
-
name: string;
|
|
76
75
|
handle: string;
|
|
76
|
+
qq: string;
|
|
77
77
|
level: string;
|
|
78
78
|
reason: string;
|
|
79
|
-
count:
|
|
79
|
+
count: number;
|
|
80
80
|
reviewer: string;
|
|
81
|
-
date:
|
|
81
|
+
date: Date;
|
|
82
82
|
comment?: string;
|
|
83
83
|
}
|
|
84
84
|
export interface ExchangeLog {
|
package/lib/index.js
CHANGED
|
@@ -7564,19 +7564,19 @@ function apply(ctx, config) {
|
|
|
7564
7564
|
ctx.model.extend("ggcevo_punishment", {
|
|
7565
7565
|
id: "unsigned",
|
|
7566
7566
|
// 自增序号
|
|
7567
|
-
name: "string",
|
|
7568
|
-
// 使用字符串存储名字
|
|
7569
7567
|
handle: "string",
|
|
7570
7568
|
// 平台用户句柄/ID
|
|
7569
|
+
qq: "string",
|
|
7570
|
+
// 关联QQ号
|
|
7571
7571
|
level: "string",
|
|
7572
7572
|
// 处罚等级
|
|
7573
7573
|
reason: "text",
|
|
7574
7574
|
// 长文本存储处罚原因
|
|
7575
|
-
count: "
|
|
7575
|
+
count: "unsigned",
|
|
7576
7576
|
// 处罚次数
|
|
7577
7577
|
reviewer: "string",
|
|
7578
7578
|
// 审核人名称
|
|
7579
|
-
date: "
|
|
7579
|
+
date: "timestamp",
|
|
7580
7580
|
// 处罚时间
|
|
7581
7581
|
comment: "text"
|
|
7582
7582
|
// 备注信息(可选)
|
|
@@ -8395,7 +8395,7 @@ ${ticketMessage}${effectMessage}`;
|
|
|
8395
8395
|
const lastYear = lastSignTime.getUTCFullYear();
|
|
8396
8396
|
const lastMonth = lastSignTime.getUTCMonth();
|
|
8397
8397
|
if (lastYear === currentYear && lastMonth === currentMonth) {
|
|
8398
|
-
return
|
|
8398
|
+
return `您的本月管理津贴已领取,请在次月1日后可再次领取。`;
|
|
8399
8399
|
}
|
|
8400
8400
|
}
|
|
8401
8401
|
await ctx.database.upsert("ggcevo_adminbenefit", [{
|
|
@@ -8823,12 +8823,13 @@ ${ticketMessage}${effectMessage}`;
|
|
|
8823
8823
|
const recordText = records.map((item) => {
|
|
8824
8824
|
const baseInfo = [
|
|
8825
8825
|
`ID: ${item.id}`,
|
|
8826
|
-
`名字: ${item.name}`,
|
|
8827
8826
|
`句柄: ${item.handle}`,
|
|
8827
|
+
`QQ: ${item.qq}`,
|
|
8828
8828
|
`处罚等级: ${item.level}`,
|
|
8829
8829
|
`处罚原因: ${item.reason}`,
|
|
8830
8830
|
`处罚次数: ${item.count}`,
|
|
8831
|
-
`审核人: ${item.reviewer}
|
|
8831
|
+
`审核人: ${item.reviewer}`,
|
|
8832
|
+
`处罚时间: ${item.date.toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" })}`
|
|
8832
8833
|
];
|
|
8833
8834
|
let finalText = baseInfo.join("\n");
|
|
8834
8835
|
return finalText;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-ggcevo-game",
|
|
3
3
|
"description": "星际争霸2咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@koishijs/plugin-proxy-agent": "^0.3.3",
|
|
21
21
|
"koishi": "^4.18.7",
|
|
22
|
-
"koishi-plugin-sc2arcade-search": "^1.2.
|
|
22
|
+
"koishi-plugin-sc2arcade-search": "^1.2.3"
|
|
23
23
|
},
|
|
24
24
|
"koishi": {
|
|
25
25
|
"service": {
|
package/readme.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# koishi-plugin-ggcevo-game
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/koishi-plugin-ggcevo-game)
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# koishi-plugin-ggcevo-game
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/koishi-plugin-ggcevo-game)
|
|
4
|
+
|
|
5
|
+
|