feat: 添加插件配置支持,优化适配器和组件初始化
This commit is contained in:
@@ -60,6 +60,9 @@ class PlusCommand(ABC):
|
||||
message: 接收到的消息对象(DatabaseMessages)
|
||||
plugin_config: 插件配置字典
|
||||
"""
|
||||
if plugin_config is None:
|
||||
plugin_config = getattr(self.__class__, "plugin_config", {})
|
||||
|
||||
self.message = message
|
||||
self.plugin_config = plugin_config or {}
|
||||
self.log_prefix = "[PlusCommand]"
|
||||
|
||||
Reference in New Issue
Block a user