mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 12:55:06 +08:00
4 lines
3.4 KiB
JavaScript
4 lines
3.4 KiB
JavaScript
import{_ as e,o as n,c as a,e as t}from"./app-Ct8dV_oN.js";const s={},l=t(`<h3 id="class-rule" tabindex="-1"><a class="header-anchor" href="#class-rule"><span><em><strong>class</strong></em> <code>Rule</code></span></a></h3><h3 id="def-init-self-handler-optional-rulehandler-none" tabindex="-1"><a class="header-anchor" href="#def-init-self-handler-optional-rulehandler-none"><span> <em><strong>def</strong></em> <code>__init__(self, handler: Optional[RuleHandler]) -> None</code></span></a></h3><p> </p><details><summary>源代码</summary><div class="language-python line-numbers-mode" data-ext="py" data-title="py"><pre class="language-python"><code><span class="token keyword">def</span> <span class="token function">__init__</span><span class="token punctuation">(</span>self<span class="token punctuation">,</span> handler<span class="token punctuation">:</span> Optional<span class="token punctuation">[</span>RuleHandler<span class="token punctuation">]</span><span class="token operator">=</span><span class="token boolean">None</span><span class="token punctuation">)</span><span class="token punctuation">:</span>
|
||
self<span class="token punctuation">.</span>handler <span class="token operator">=</span> handler
|
||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div></details>`,4),o=[l];function i(r,p){return n(),a("div",null,o)}const d=e(s,[["render",i],["__file","rule.html.vue"]]),u=JSON.parse('{"path":"/dev/api/message/rule.html","title":"liteyuki.message.rule","lang":"zh-CN","frontmatter":{"title":"liteyuki.message.rule","order":1,"icon":"laptop-code","category":"API","description":"class Rule def __init__(self, handler: Optional[RuleHandler]) -> None 源代码","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/message/rule.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/message/rule.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"liteyuki.message.rule"}],["meta",{"property":"og:description","content":"class Rule def __init__(self, handler: Optional[RuleHandler]) -> None 源代码"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2024-08-21T09:59:21.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-21T09:59:21.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.message.rule\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-21T09:59:21.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class Rule","slug":"class-rule","link":"#class-rule","children":[]},{"level":3,"title":"def __init__(self, handler: Optional[RuleHandler]) -> None","slug":"def-init-self-handler-optional-rulehandler-none","link":"#def-init-self-handler-optional-rulehandler-none","children":[]}],"git":{"createdTime":1724234361000,"updatedTime":1724234361000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":1}]},"readingTime":{"minutes":0.12,"words":37},"filePathRelative":"dev/api/message/rule.md","localizedDate":"2024年8月21日","autoDesc":true}');export{d as comp,u as data};
|