feat: applying plugin config to plugin instance

This commit is contained in:
Junyan Qin
2025-04-12 21:19:20 +08:00
parent ebd091a9e0
commit fc23fc7aed
3 changed files with 28 additions and 0 deletions

View File

@@ -87,9 +87,13 @@ class BasePlugin(metaclass=abc.ABCMeta):
ap: app.Application
"""应用程序对象"""
config: dict
"""插件配置"""
def __init__(self, host: APIHost):
"""初始化阶段被调用"""
self.host = host
self.config = {}
async def initialize(self):
"""初始化阶段被调用"""