mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 03:34:20 +00:00
refactor: 重构插件系统
This commit is contained in:
@@ -26,6 +26,9 @@ class JSONConfigFile(file_model.ConfigFile):
|
||||
|
||||
async def load(self) -> dict:
|
||||
|
||||
if not self.exists():
|
||||
await self.create()
|
||||
|
||||
with open(self.config_file_name, 'r', encoding='utf-8') as f:
|
||||
cfg = json.load(f)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user