From 0afe7dc32355b940fcc5661a6705f384c8d65a48 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 19 Mar 2025 10:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=B1=BB=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_common/plugin_manager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin_common/plugin_manager.py b/plugin_common/plugin_manager.py index a1803f6..c085b4e 100644 --- a/plugin_common/plugin_manager.py +++ b/plugin_common/plugin_manager.py @@ -107,10 +107,9 @@ class PluginManager: plugin_class = None for name, obj in inspect.getmembers(module): if (inspect.isclass(obj) and - issubclass(obj, PluginInterface) and + (issubclass(obj, PluginInterface) or issubclass(obj, MessagePluginInterface)) and obj != PluginInterface and - obj != MessagePluginInterface and - obj != ScheduledPluginInterface): + obj != MessagePluginInterface): plugin_class = obj break