app/assets/plugin.html-DzKXXVFs.js

2 lines
3.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e,o as t,c as i,e as n}from"./app-B8NXd739.js";const o={},l=n('<h3 id="def-run-plugins-none" tabindex="-1"><a class="header-anchor" href="#def-run-plugins-none"><span><em><strong>def</strong></em> <code>run_plugins() -&gt; None</code></span></a></h3><p>运行插件无需手动初始化bot</p><p>Args:</p><pre><code>module_path: 插件路径,参考`liteyuki.load_plugin`的函数签名\n</code></pre><h3 id="var-cfg-load-config-in-default" tabindex="-1"><a class="header-anchor" href="#var-cfg-load-config-in-default"><span><em><strong>var</strong></em> <code>cfg = load_config_in_default()</code></span></a></h3><h3 id="var-plugins-cfg-get-liteyuki-plugins" tabindex="-1"><a class="header-anchor" href="#var-plugins-cfg-get-liteyuki-plugins"><span><em><strong>var</strong></em> <code>plugins = cfg.get(&#39;liteyuki.plugins&#39;, [])</code></span></a></h3><h3 id="var-bot-liteyukibot-cfg" tabindex="-1"><a class="header-anchor" href="#var-bot-liteyukibot-cfg"><span><em><strong>var</strong></em> <code>bot = LiteyukiBot(**cfg)</code></span></a></h3>',7),a=[l];function r(g,c){return t(),i("div",null,a)}const d=e(o,[["render",r],["__file","plugin.html.vue"]]),p=JSON.parse(`{"path":"/en/dev/api/liteyuki/dev/plugin.html","title":"liteyuki.dev.plugin","lang":"en-US","frontmatter":{"title":"liteyuki.dev.plugin","order":1,"icon":"laptop-code","category":"API","description":"def run_plugins() -> None 运行插件无需手动初始化bot Args: var cfg = load_config_in_default() var plugins = cfg.get('liteyuki.plugins', []) var bot = LiteyukiBot(**cfg)","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/liteyuki/dev/plugin.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot"}],["meta",{"property":"og:title","content":"liteyuki.dev.plugin"}],["meta",{"property":"og:description","content":"def run_plugins() -> None 运行插件无需手动初始化bot Args: var cfg = load_config_in_default() var plugins = cfg.get('liteyuki.plugins', []) var bot = LiteyukiBot(**cfg)"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2024-08-19T02:22:24.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-19T02:22:24.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.dev.plugin\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-19T02:22:24.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":3,"title":"def run_plugins() -> None","slug":"def-run-plugins-none","link":"#def-run-plugins-none","children":[]},{"level":3,"title":"var cfg = load_config_in_default()","slug":"var-cfg-load-config-in-default","link":"#var-cfg-load-config-in-default","children":[]},{"level":3,"title":"var plugins = cfg.get('liteyuki.plugins', [])","slug":"var-plugins-cfg-get-liteyuki-plugins","link":"#var-plugins-cfg-get-liteyuki-plugins","children":[]},{"level":3,"title":"var bot = LiteyukiBot(**cfg)","slug":"var-bot-liteyukibot-cfg","link":"#var-bot-liteyukibot-cfg","children":[]}],"git":{"createdTime":1724031826000,"updatedTime":1724034144000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":3}]},"readingTime":{"minutes":0.16,"words":49},"filePathRelative":"en/dev/api/liteyuki/dev/plugin.md","localizedDate":"August 19, 2024","autoDesc":true}`);export{d as comp,p as data};