fix: alconna响应器命令头别名配置错误的问题

This commit is contained in:
2024-03-31 18:54:04 +08:00
parent d3f3ee6dfa
commit 3065122059
6 changed files with 32 additions and 25 deletions

View File

@ -9,8 +9,9 @@ from .game import Minesweeper
from nonebot_plugin_alconna import Alconna, on_alconna, Subcommand, Args, Arparma
minesweeper = on_alconna(
Alconna(
["minesweeper", "扫雷"],
aliases={"扫雷"},
command=Alconna(
"minesweeper",
Subcommand(
"start",
Args["row", int, 8]["col", int, 8]["mines", int, 10],