mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
check_plugin_status 中判断是否加载失败的逻辑似乎反了
This commit is contained in:
@@ -9,7 +9,7 @@ async def check_plugin_status(bot: Bot):
|
||||
msg = ""
|
||||
for plugin in plugins_manager.keys():
|
||||
data = plugins_manager.get(plugin)
|
||||
if not data.error:
|
||||
if data.error:
|
||||
msg += f'{plugin}:{data.plugin_name}\n'
|
||||
if msg and bot.config.superusers:
|
||||
msg = "以下插件加载失败..\n" + msg
|
||||
|
||||
Reference in New Issue
Block a user