feat✨: 添加shortcut和usage

This commit is contained in:
HibiKier
2024-02-27 16:12:56 +08:00
parent 499e51e996
commit 993ff81130
8 changed files with 255 additions and 65 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ async def _(matcher: Matcher, bot: Bot, session: EventSession, state: T_State):
raise ValueError("模块: [hook], 配置项: [MALICIOUS_BAN_TIME] 为空或小于0")
if user_id:
command = state["_prefix"]["raw_command"]
if state["_alc_result"]:
if state.get("_alc_result"):
command = state["_alc_result"].source.command
if command:
if _blmt.check(f"{user_id}__{command}"):