尝试调整一下内容
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user