mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-01-29 13:09:49 +08:00
20 lines
484 B
Python
20 lines
484 B
Python
import os
|
|
from config import pconf
|
|
from common.log import logger
|
|
|
|
class Plugin:
|
|
def __init__(self):
|
|
self.handlers = {}
|
|
|
|
def load_config(self) -> dict:
|
|
"""
|
|
加载当前插件配置
|
|
:return: 插件配置字典
|
|
"""
|
|
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 "暂无帮助信息"
|