diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dab64d..720a451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/ ## [Unreleased] +### Changed + +- 事件响应器现在将阻断事件的传播 + ## [0.3.0] - 2024-06-28 ### Added diff --git a/nonebot_plugin_user/matchers.py b/nonebot_plugin_user/matchers.py index a55b39b..6d1312d 100644 --- a/nonebot_plugin_user/matchers.py +++ b/nonebot_plugin_user/matchers.py @@ -27,6 +27,7 @@ Option("-l", Args["name", str]), ), use_cmd_start=True, + block=True, ) @@ -52,7 +53,11 @@ async def _(session: UserSession, name: Match[str]): ) -inspect_cmd = on_alconna(Alconna("inspect"), use_cmd_start=True) +inspect_cmd = on_alconna( + Alconna("inspect"), + use_cmd_start=True, + block=True, +) @inspect_cmd.handle() @@ -82,7 +87,9 @@ def generate_token() -> str: bind_cmd = on_alconna( - Alconna("bind", Option("-r"), Args["token?", str]), use_cmd_start=True + Alconna("bind", Option("-r"), Args["token?", str]), + use_cmd_start=True, + block=True, )