@zhin.js/plugin-group-suite 1.1.11 → 1.1.13
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/README.md
CHANGED
|
@@ -61,10 +61,12 @@ group-suite:
|
|
|
61
61
|
|
|
62
62
|
未配置命名空间时直接使用表内指令名;如果实例设 `commandNamespace: suite`,使用
|
|
63
63
|
`suite checkin` 等形式。实际前缀由 Endpoint 决定。
|
|
64
|
+
别名同样位于命名空间之下(如 `suite 签到`、`suite checkin rank`)。
|
|
64
65
|
|
|
65
66
|
| 指令/能力 | 说明 |
|
|
66
67
|
|---|---|
|
|
67
68
|
| `checkin` / `mypoints` / `rank` | 签到、积分与排行 |
|
|
69
|
+
| `checkin do` / `签到` · `checkin streak` · `checkin rank` | 兼容别名:分别等同 `checkin`、`mypoints`、`rank`,方便从 `checkin <子命令>` 风格的本地签到插件迁移 |
|
|
68
70
|
| `stats` / `stats-week` / `stats-rank` / `mystats` | 消息统计 |
|
|
69
71
|
| `stats-card` | 当日统计 HTML 图卡;没有渲染服务时走统一文本降级 |
|
|
70
72
|
| `teach` / `teach-regex` / `teach-list` / `forget` | 群问答与管理 |
|
|
@@ -5,6 +5,7 @@ import { doCheckin } from "../../lib/checkin-lib.js";
|
|
|
5
5
|
import { resolveGroupSuiteRuntime } from "../../lib/runtime-state.js";
|
|
6
6
|
export default defineCommand({
|
|
7
7
|
description: '每日签到获得积分',
|
|
8
|
+
alias: ['checkin do', '签到'],
|
|
8
9
|
execute({ config, input, owner, use }) {
|
|
9
10
|
return doCheckin(input ?? {}, resolveGroupSuiteConfig(config), resolveGroupSuiteRuntime({ owner, use }));
|
|
10
11
|
},
|
|
@@ -6,6 +6,7 @@ import { resolveGroupSuiteRuntime } from '../../src/runtime-state.js';
|
|
|
6
6
|
|
|
7
7
|
export default defineCommand<GroupSuiteConfig, string, Message>({
|
|
8
8
|
description: '每日签到获得积分',
|
|
9
|
+
alias: ['checkin do', '签到'],
|
|
9
10
|
execute({ config, input, owner, use }) {
|
|
10
11
|
return doCheckin(input ?? {}, resolveGroupSuiteConfig(config), resolveGroupSuiteRuntime({ owner, use }));
|
|
11
12
|
},
|
|
@@ -4,6 +4,7 @@ import { myPoints } from "../../lib/checkin-lib.js";
|
|
|
4
4
|
import { resolveGroupSuiteRuntime } from "../../lib/runtime-state.js";
|
|
5
5
|
export default defineCommand({
|
|
6
6
|
description: '查看个人积分与签到信息',
|
|
7
|
+
alias: ['checkin streak'],
|
|
7
8
|
execute({ input, owner, use }) {
|
|
8
9
|
return myPoints(input ?? {}, resolveGroupSuiteRuntime({ owner, use }));
|
|
9
10
|
},
|
|
@@ -6,6 +6,7 @@ import { resolveGroupSuiteRuntime } from '../../src/runtime-state.js';
|
|
|
6
6
|
|
|
7
7
|
export default defineCommand<GroupSuiteConfig, string, Message>({
|
|
8
8
|
description: '查看个人积分与签到信息',
|
|
9
|
+
alias: ['checkin streak'],
|
|
9
10
|
execute({ input, owner, use }) {
|
|
10
11
|
return myPoints(input ?? {}, resolveGroupSuiteRuntime({ owner, use }));
|
|
11
12
|
},
|
package/commands/rank/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { pointsRank } from "../../lib/checkin-lib.js";
|
|
|
5
5
|
import { resolveGroupSuiteRuntime } from "../../lib/runtime-state.js";
|
|
6
6
|
export default defineCommand({
|
|
7
7
|
description: '查看积分排行榜',
|
|
8
|
+
alias: ['checkin rank'],
|
|
8
9
|
execute({ config, input, owner, use }) {
|
|
9
10
|
return pointsRank(input ?? {}, resolveGroupSuiteConfig(config), resolveGroupSuiteRuntime({ owner, use }));
|
|
10
11
|
},
|
package/commands/rank/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { resolveGroupSuiteRuntime } from '../../src/runtime-state.js';
|
|
|
6
6
|
|
|
7
7
|
export default defineCommand<GroupSuiteConfig, string, Message>({
|
|
8
8
|
description: '查看积分排行榜',
|
|
9
|
+
alias: ['checkin rank'],
|
|
9
10
|
execute({ config, input, owner, use }) {
|
|
10
11
|
return pointsRank(input ?? {}, resolveGroupSuiteConfig(config), resolveGroupSuiteRuntime({ owner, use }));
|
|
11
12
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-group-suite",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "Zhin.js 群运营套件:签到、教学、统计、持久词库与群欢迎",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@zhin.js/components": "1.1.
|
|
45
|
-
"@zhin.js/core": "1.1.
|
|
46
|
-
"@zhin.js/jsx": "1.1.
|
|
47
|
-
"@zhin.js/skill": "1.1.
|
|
48
|
-
"@zhin.js/tool": "1.1.
|
|
44
|
+
"@zhin.js/components": "1.1.4",
|
|
45
|
+
"@zhin.js/core": "1.1.48",
|
|
46
|
+
"@zhin.js/jsx": "1.1.4",
|
|
47
|
+
"@zhin.js/skill": "1.1.8",
|
|
48
|
+
"@zhin.js/tool": "1.1.8"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"vitest": "^4.1.10",
|
|
53
53
|
"zod": "^4.4.3",
|
|
54
|
-
"zhin.js": "1.1.
|
|
54
|
+
"zhin.js": "1.1.13"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"zod": "^4.0.0",
|
|
58
|
-
"@zhin.js/command": "^1.1.
|
|
59
|
-
"@zhin.js/middleware": "^1.1.
|
|
60
|
-
"zhin.js": "^1.1.
|
|
61
|
-
"@zhin.js/handler": "^1.1.
|
|
62
|
-
"@zhin.js/schedule-feature": "^1.1.
|
|
58
|
+
"@zhin.js/command": "^1.1.9",
|
|
59
|
+
"@zhin.js/middleware": "^1.1.8",
|
|
60
|
+
"zhin.js": "^1.1.13",
|
|
61
|
+
"@zhin.js/handler": "^1.1.7",
|
|
62
|
+
"@zhin.js/schedule-feature": "^1.1.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@zhin.js/command": {
|