forked from bot/app
9 lines
3.3 KiB
JavaScript
9 lines
3.3 KiB
JavaScript
|
import{_ as e,o as t,c as n,e as r}from"./app-vZ92a7EE.js";const l={},a=r(`<h3 id="class-matcher" tabindex="-1"><a class="header-anchor" href="#class-matcher"><span><em><strong>class</strong></em> <code>Matcher</code></span></a></h3><h3 id="def-init-self-rule-rule-priority-int-block-bool-none" tabindex="-1"><a class="header-anchor" href="#def-init-self-rule-rule-priority-int-block-bool-none"><span> <em><strong>def</strong></em> <code>__init__(self, rule: Rule, priority: int, block: bool) -> None</code></span></a></h3><p> 匹配器</p><p>Args:</p><pre><code>rule: 规则
|
|||
|
|
|||
|
priority: 优先级 >= 0
|
|||
|
|
|||
|
block: 是否阻断后续优先级更低的匹配器
|
|||
|
</code></pre><h3 id="def-handle-self-handler-eventhandler-eventhandler" tabindex="-1"><a class="header-anchor" href="#def-handle-self-handler-eventhandler-eventhandler"><span> <em><strong>def</strong></em> <code>handle(self, handler: EventHandler) -> EventHandler</code></span></a></h3><p> 添加处理函数,装饰器</p><p>Args:</p><pre><code>handler:
|
|||
|
</code></pre><p>Returns:</p><pre><code>EventHandler
|
|||
|
</code></pre>`,11),o=[a];function s(i,d){return t(),n("div",null,o)}const h=e(l,[["render",s],["__file","matcher.html.vue"]]),p=JSON.parse('{"path":"/dev/api/message/matcher.html","title":"liteyuki.message.matcher","lang":"zh-CN","frontmatter":{"title":"liteyuki.message.matcher","order":1,"icon":"laptop-code","category":"API","description":"class Matcher def __init__(self, rule: Rule, priority: int, block: bool) -> None 匹配器 Args: def handle(self, handler: EventHandler) -> EventHandler 添加处理函数,装饰器 Args: Returns:","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/message/matcher.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/message/matcher.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"liteyuki.message.matcher"}],["meta",{"property":"og:description","content":"class Matcher def __init__(self, rule: Rule, priority: int, block: bool) -> None 匹配器 Args: def handle(self, handler: EventHandler) -> EventHandler 添加处理函数,装饰器 Args: Returns:"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.message.matcher\\",\\"image\\":[\\"\\"],\\"dateModified\\":null,\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class Matcher","slug":"class-matcher","link":"#class-matcher","children":[]},{"level":3,"title":"def __init__(self, rule: Rule, priority: int, block: bool) -> None","slug":"def-init-self-rule-rule-priority-int-block-bool-none","link":"#def-init-self-rule-rule-priority-int-block-bool-none","children":[]},{"level":3,"title":"def handle(self, handler: EventHandler) -> EventHandler","slug":"def-handle-self-handler-eventhandler-eventhandler","link":"#def-handle-self-handler-eventhandler-eventhandler","children":[]}],"git":{"createdTime":null,"updatedTime":null,"contributors":[]},"readingTime":{"minutes":0.24,"words":72},"filePathRelative":"dev/api/message/matcher.md","autoDesc":true}');export{h as comp,p as data};
|