Skip to content

Commit

Permalink
Update hook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier authored Sep 4, 2021
1 parent b6b0dc8 commit 8871779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("有命令就别说话了")

0 comments on commit 8871779

Please sign in to comment.