尝试调整一下内容

This commit is contained in:
liuwei
2025-03-19 09:49:58 +08:00
parent 19c0a2ae4d
commit 85d3f06baf
2 changed files with 12 additions and 6 deletions

View File

@@ -108,9 +108,11 @@ class PluginManager:
for name, obj in inspect.getmembers(module):
if (inspect.isclass(obj) and
issubclass(obj, PluginInterface) and
obj != PluginInterface and
obj != MessagePluginInterface and
obj != ScheduledPluginInterface):
obj != PluginInterface
# 修改这里:不排除继承自 MessagePluginInterface 和 ScheduledPluginInterface 的类
# obj != MessagePluginInterface and
# obj != ScheduledPluginInterface
):
plugin_class = obj
break