update v0.1.5.8

This commit is contained in:
HibiKier
2022-05-29 20:47:18 +08:00
parent fb9db2f50c
commit 558f362919
5 changed files with 8 additions and 5 deletions
@@ -40,7 +40,7 @@ def init_none_plugin_count_manager():
plugins2block_manager.save()
plugins_manager.delete(module)
plugins_manager.save()
resources_manager.remove_resource(module)
# resources_manager.remove_resource(module)
none_plugin_count_manager.delete(module)
logger.info(f"{module}:{plugin_name} 插件疑似已删除,清除对应插件数据...")
except Exception as e:
+2
View File
@@ -71,6 +71,8 @@ async def install_plugin(name: str) -> str:
os.system(
f"poetry run pip install -r {(extensive_plugin_path / f'{name}' / 'pyproject.toml').absolute()}"
)
with open(extensive_plugin_path / f'{name}' / "plugin_info.json", 'w') as f:
json.dump(data[name], f, ensure_ascii=False, indent=4)
logger.debug("移动插件文件夹完成...")
logger.info(f"成功安装插件 {name} 成功!\n{tmp}")
return f"成功安装插件 {name},请重启bot!"