mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
fix: global plugin config read
This commit is contained in:
@@ -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 "暂无帮助信息"
|
||||
|
||||
Reference in New Issue
Block a user