|
|
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><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('liteyuki.plugins', [])</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>`,8),o=[i];function l(p,c){return e(),t("div",null,o)}const r=n(s,[["render",l],["__file","plugin.html.vue"]]),d=JSON.parse(`{"path":"/en/dev/api/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":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/dev/plugin.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/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:locale:alternate","content":"zh-CN"}],["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.dev.plugin\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-21T09:59:21.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":1724234361000,"updatedTime":1724234361000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":1}]},"readingTime":{"minutes":0.34,"words":102},"filePathRelative":"en/dev/api/dev/plugin.md","localizedDate":"August 21, 2024","autoDesc":true}`);export{r as comp,d as data};
|