mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-08 21:30:01 +08:00
Update hook.py
This commit is contained in:
+2
-1
@@ -486,9 +486,10 @@ async def _(matcher: Matcher, bot: Bot, event: MessageEvent, state: T_State):
|
|||||||
and _exists_msg.get(event.group_id) is True
|
and _exists_msg.get(event.group_id) is True
|
||||||
):
|
):
|
||||||
_exists_msg[event.group_id] = False
|
_exists_msg[event.group_id] = False
|
||||||
|
raise IgnoredException("有命令就别说话了")
|
||||||
elif (
|
elif (
|
||||||
isinstance(event, PrivateMessageEvent)
|
isinstance(event, PrivateMessageEvent)
|
||||||
and _exists_msg.get(event.user_id) is True
|
and _exists_msg.get(event.user_id) is True
|
||||||
):
|
):
|
||||||
_exists_msg[event.user_id] = False
|
_exists_msg[event.user_id] = False
|
||||||
raise IgnoredException("有命令就别说话了")
|
raise IgnoredException("有命令就别说话了")
|
||||||
|
|||||||
Reference in New Issue
Block a user