chore: clean up

This commit is contained in:
2026-02-28 17:44:38 +08:00
parent 80471e8dd2
commit 1f5ee24a0f
6 changed files with 60 additions and 89 deletions
@@ -4,7 +4,7 @@ import {
CommanderEntry,
CompletionItem,
} from "../types";
import { useDiceRoller } from "./useDiceRoller";
import { rollSimple } from "./useDiceRoller";
// ==================== 默认命令 ====================
@@ -57,7 +57,6 @@ export const defaultCommands: Record<string, MdCommanderCommand> = {
],
handler: (args) => {
const formula = args.params.formula || "1d6";
const { rollSimple } = useDiceRoller();
const result = rollSimple(formula);
return {
message: result.text,