跳至主要內容

liteyuki.message.matcher

远野千束小于 1 分钟API

class Matcher

def __init__(self, rule: Rule, priority: int, block: bool) -> None

 匹配器

Args:

rule: 规则

priority: 优先级 >= 0

block: 是否阻断后续优先级更低的匹配器

def handle(self, handler: EventHandler) -> EventHandler

 添加处理函数,装饰器

Args:

handler:

Returns:

EventHandler