From 887177913df241c38ab2887e8d285e05a2edcd9e Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Sun, 5 Sep 2021 03:20:03 +0800 Subject: [PATCH] Update hook.py --- plugins/hook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/hook.py b/plugins/hook.py index 6aef856e5..9ff5d9dce 100644 --- a/plugins/hook.py +++ b/plugins/hook.py @@ -486,9 +486,10 @@ async def _(matcher: Matcher, bot: Bot, event: MessageEvent, state: T_State): and _exists_msg.get(event.group_id) is True ): _exists_msg[event.group_id] = False + raise IgnoredException("有命令就别说话了") elif ( isinstance(event, PrivateMessageEvent) and _exists_msg.get(event.user_id) is True ): _exists_msg[event.user_id] = False - raise IgnoredException("有命令就别说话了") + raise IgnoredException("有命令就别说话了")