feat: add plugin global config to support docker volumes

This commit is contained in:
zhayujie
2023-07-20 11:36:02 +08:00
parent 2361e3c28c
commit 954e55f4b4
8 changed files with 90 additions and 8 deletions

View File

@@ -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 "暂无帮助信息"