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

@ -15,7 +15,7 @@ from nonebot_plugin_alconna import Alconna, Args, Arparma, Subcommand, on_alconn
profile_alc = on_alconna(
Alconna(
["profile", "个人信息"],
"profile",
Subcommand(
"set",
Args["key", str]["value", str, None],
@ -26,7 +26,8 @@ profile_alc = on_alconna(
Args["key", str],
alias=["g", "查询"],
),
)
),
aliases={"用户信息"}
)