You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
484B

  1. import os
  2. from config import pconf
  3. from common.log import logger
  4. class Plugin:
  5. def __init__(self):
  6. self.handlers = {}
  7. def load_config(self) -> dict:
  8. """
  9. 加载当前插件配置
  10. :return: 插件配置字典
  11. """
  12. conf = pconf(self.name)
  13. logger.info(f"loading from global plugin config, plugin_name={self.name}, conf={conf}")
  14. return conf
  15. def get_help_text(self, **kwargs):
  16. return "暂无帮助信息"