Skip to content

Commit

Permalink
remove OnPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
RikaCelery committed Oct 10, 2024
1 parent 816234b commit 392941b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ func OnMessage(rules ...Rule) *Matcher { return On("message", rules...) }
// OnMessage 消息触发器
func (e *Engine) OnMessage(rules ...Rule) *Matcher { return e.On("message", rules...) }

// OnPattern 消息模板触发器
func OnPattern(rules ...PatternSegment) *Matcher { return On("message", PatternRule(rules...)) }

// OnPattern 消息模板触发器
func (e *Engine) OnPattern(rules ...PatternSegment) *Matcher {
return e.On("message", PatternRule(rules...))
}

// OnNotice 系统提示触发器
func OnNotice(rules ...Rule) *Matcher { return On("notice", rules...) }

Expand Down

0 comments on commit 392941b

Please sign in to comment.