chore: clean up
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user