📝 update how to work doc

Co-authored-by: AkiraXie <l997460364@outlook.com>
This commit is contained in:
yanyongyu
2021-02-26 17:00:38 +08:00
parent 9ea80abf8c
commit 3c312d9759
5 changed files with 180 additions and 2 deletions

View File

@ -101,6 +101,8 @@ nb plugin install nonebot_plugin_test
NoneBot 内置的事件响应器中,所有 `message` 类的事件响应器默认会阻断事件传递,其他则不会。
在部分情况中,可以使用 `matcher.stop_propagation()` 方法动态阻止事件传播,该方法需要 `handler` 在参数中获取 `matcher` 实例后调用方法。
## 自定义 rule
rule 的出现使得 nonebot 对事件的响应可以非常自由nonebot 内置了一些规则:

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB