import{_ as s,o as a,c as t,a7 as n}from"./chunks/framework._avq4Ty7.js";const u=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"};function l(p,i,h,k,r,d){return a(),t("div",null,i[0]||(i[0]=[n(`

Module 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


func run_plugins(*module_path: str | Path)

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

Arguments:

Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
    cfg = load_config_in_default()
    plugins = cfg.get('liteyuki.plugins', [])
    plugins.extend(module_path)
    cfg['liteyuki.plugins'] = plugins
    bot = LiteyukiBot(**cfg)
    bot.run()
`,9)]))}const g=s(e,[["render",l]]);export{u as __pageData,g as default};