1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-12 14:10:30 +08:00

feat: ctx add api Break

This commit is contained in:
源文雨
2022-10-11 00:14:05 +08:00
parent 95250c70dc
commit 73d5f1e597
5 changed files with 27 additions and 6 deletions

View File

@@ -20,6 +20,8 @@ type Matcher struct {
Temp bool
// Block 是否阻断后续 Matcher为 true 时当前Matcher匹配成功后后续Matcher不参与匹配
Block bool
// Break 是否退出后续匹配流程, 只有 rule 返回 false 且此值为真才会退出, 且不对 mid handler 以下的 rule 生效
Break bool
// priority 优先级,越小优先级越高
priority int
// Event 当前匹配到的事件