@zhin.js/plugin-dice-duel 1.0.8 → 1.0.10
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.
|
@@ -5,6 +5,7 @@ import { DICE_HELP, runDiceCommand } from "../../lib/dice-command.js";
|
|
|
5
5
|
import { resolveGameServices } from "../../lib/runtime-store.js";
|
|
6
6
|
export default defineCommand({
|
|
7
7
|
description: 'Dice Duel',
|
|
8
|
+
params: { action: { type: 'string', default: '' } },
|
|
8
9
|
async execute({ params, input, use, owner }) {
|
|
9
10
|
const action = normalizeDiceAction(String(params.action ?? ''));
|
|
10
11
|
if (!action || action === 'help')
|
|
@@ -5,6 +5,7 @@ import { resolveGameServices } from '../../src/runtime-store.js';
|
|
|
5
5
|
|
|
6
6
|
export default defineCommand({
|
|
7
7
|
description: 'Dice Duel',
|
|
8
|
+
params: { action: { type: 'string', default: '' } },
|
|
8
9
|
async execute({ params, input, use, owner }) {
|
|
9
10
|
const action = normalizeDiceAction(String(params.action ?? ''));
|
|
10
11
|
if (!action || action === 'help') return DICE_HELP;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-dice-duel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Zhin.js 骰子对决 — 三局两胜比大小 (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@zhin.js/command": "1.0.
|
|
28
|
-
"@zhin.js/core": "1.5.
|
|
29
|
-
"@zhin.js/game-kit": "3.0.
|
|
30
|
-
"@zhin.js/middleware": "1.0.
|
|
31
|
-
"@zhin.js/plugin-runtime": "1.1.
|
|
27
|
+
"@zhin.js/command": "1.0.7",
|
|
28
|
+
"@zhin.js/core": "1.5.2",
|
|
29
|
+
"@zhin.js/game-kit": "3.0.2",
|
|
30
|
+
"@zhin.js/middleware": "1.0.6",
|
|
31
|
+
"@zhin.js/plugin-runtime": "1.1.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "^6.0.3",
|