mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +08:00
✨ 新增开发者模式,快速运行插件
This commit is contained in:
parent
1d0b18291e
commit
87d4202ed3
@ -22,5 +22,5 @@ def run_plugins(*module_path: str | Path):
|
||||
"""
|
||||
cfg = load_config_in_default()
|
||||
cfg["liteyuki.plugins"] = cfg.get("liteyuki.plugins", []).extend(module_path)
|
||||
bot = LiteyukiBot(cfg)
|
||||
bot = LiteyukiBot(**cfg)
|
||||
bot.run()
|
||||
|
Loading…
Reference in New Issue
Block a user