import{_ as n,o as t,c as e,e as s}from"./app-gnbtOU7f.js";const a={},o=s(`

func run_plugins()

Description: 运行插件,无需手动初始化bot

Arguments:

Source code
def run_plugins(*module_path: str | Path):
    """
    运行插件,无需手动初始化bot
    Args:
        module_path: 插件路径,参考\`liteyuki.load_plugin\`的函数签名
    """
    cfg = load_config_in_default()
    plugins = cfg.get('liteyuki.plugins', [])
    plugins.extend(module_path)
    cfg['liteyuki.plugins'] = plugins
    bot = LiteyukiBot(**cfg)
    bot.run()
`,5),p=[o];function i(l,u){return t(),e("div",null,p)}const r=n(a,[["render",i],["__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","description":"func run_plugins() Description: 运行插件,无需手动初始化bot Arguments: module_path: 插件路径,参考liteyuki.load_plugin的函数签名 Source code","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":"func run_plugins() Description: 运行插件,无需手动初始化bot Arguments: module_path: 插件路径,参考liteyuki.load_plugin的函数签名 Source code"}],["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-29T06:19:39.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-29T06:19:39.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.dev.plugin\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-29T06:19:39.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":3,"title":"func run_plugins()","slug":"func-run-plugins","link":"#func-run-plugins","children":[]}],"git":{"createdTime":1724234361000,"updatedTime":1724912379000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":2}]},"readingTime":{"minutes":0.28,"words":85},"filePathRelative":"en/dev/api/dev/plugin.md","localizedDate":"August 21, 2024","autoDesc":true}');export{r as comp,d as data};