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

liteyuki.dev.plugin

说明: Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm

def run_plugins(*module_path: str | Path)

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

参数:

源代码在GitHub上查看
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()
`,8),o=[i];function p(l,u){return t(),e("div",null,o)}const r=n(s,[["render",p],["__file","plugin.html.vue"]]),d=JSON.parse('{"path":"/dev/api/dev/plugin.html","title":"liteyuki.dev.plugin","lang":"zh-CN","frontmatter":{"title":"liteyuki.dev.plugin","lastUpdated":false,"description":"liteyuki.dev.plugin 说明: Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved @Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py...","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/dev/plugin.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/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":"liteyuki.dev.plugin 说明: Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved @Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py..."}],["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-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":"def run_plugins(*module_path: str | Path)","slug":"def-run-plugins-module-path-str-path","link":"#def-run-plugins-module-path-str-path","children":[]}],"git":{"createdTime":1724031826000,"updatedTime":1724912379000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":5}]},"readingTime":{"minutes":0.44,"words":132},"filePathRelative":"dev/api/dev/plugin.md","localizedDate":"2024年8月19日","autoDesc":true}');export{r as comp,d as data};