import{_ as e,o as a,c as t,e as n}from"./app-Ct8dV_oN.js";const s={},r=n(`
on_message(rule: Rule, priority: int, block: bool) -> Matcher
def on_message(rule: Rule=Rule(), priority: int=0, block: bool=True) -> Matcher:
matcher = Matcher(rule, priority, block)
for (i, m) in enumerate(_matcher_list):
if m.priority < matcher.priority:
_matcher_list.insert(i, matcher)
break
else:
_matcher_list.append(matcher)
return matcher
current_priority = -1
matcher = Matcher(rule, priority, block)
current_priority = matcher.priority