fix: global plugin config read

This commit is contained in:
zhayujie
2023-07-20 14:24:40 +08:00
parent 954e55f4b4
commit 4bab4299f2
5 changed files with 38 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
import os
from config import pconf
from common.log import logger
class Plugin:
def __init__(self):
@@ -10,7 +11,9 @@ class Plugin:
加载当前插件配置
:return: 插件配置字典
"""
return pconf(self.name)
conf = pconf(self.name)
logger.info(f"loading from global plugin config, plugin_name={self.name}, conf={conf}")
return conf
def get_help_text(self, **kwargs):
return "暂无帮助信息"