1
0
forked from bot/app

fix: 插件安装提示找不到

This commit is contained in:
远野千束 2024-04-08 17:42:04 +08:00
parent 3fba4c78dc
commit c400eae7c8

View File

@ -56,7 +56,7 @@ async def get_store_plugin(plugin_name: str) -> Optional[StorePlugin]:
async with aiofiles.open("data/liteyuki/plugins.json", "r", encoding="utf-8") as f:
plugins: list[StorePlugin] = [StorePlugin(**pobj) for pobj in json.loads(await f.read())]
for plugin in plugins:
if plugin.name == plugin_name:
if plugin.module_name == plugin_name:
return plugin
return None