forked from bot/app
✨ 新增开发者模式,快速运行插件
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 = load_config_in_default()
|
||||||
cfg["liteyuki.plugins"] = cfg.get("liteyuki.plugins", []).extend(module_path)
|
cfg["liteyuki.plugins"] = cfg.get("liteyuki.plugins", []).extend(module_path)
|
||||||
bot = LiteyukiBot(cfg)
|
bot = LiteyukiBot(**cfg)
|
||||||
bot.run()
|
bot.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user