新增开发者模式,快速运行插件

This commit is contained in:
远野千束 2024-08-18 05:11:10 +08:00
parent 1d0b18291e
commit 87d4202ed3

View File

@ -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()