mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-02 16:29:20 +08:00
feat: add plugin global config to support docker volumes
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
import os
|
||||
from config import pconf
|
||||
|
||||
class Plugin:
|
||||
def __init__(self):
|
||||
self.handlers = {}
|
||||
|
||||
def load_config(self) -> dict:
|
||||
"""
|
||||
加载当前插件配置
|
||||
:return: 插件配置字典
|
||||
"""
|
||||
return pconf(self.name)
|
||||
|
||||
def get_help_text(self, **kwargs):
|
||||
return "暂无帮助信息"
|
||||
|
||||
Reference in New Issue
Block a user