MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / __init__

Method __init__

src/wechaty/plugin.py:406–416  ·  view source on GitHub ↗
(self, options: Optional[WechatyPluginOptions] = None)

Source from the content-addressed store, hash-verified

404 UI_DIR = None
405
406 def __init__(self, options: Optional[WechatyPluginOptions] = None):
407 self.output: Dict[str, Any] = {}
408 self.bot: Optional[Wechaty] = None
409 if options is None:
410 options = WechatyPluginOptions()
411 self.options = options
412 self._default_logger: Optional[Logger] = None
413 self._cache_dir: Optional[str] = None
414
415 self.setting_file: str = os.path.join(self.cache_dir, 'setting.json')
416 self._setting_wechaty_setting: WechatySetting = WechatySetting(self.setting_file)
417
418 def metadata(self) -> NavMetadata:
419 """get the default nav metadata

Callers

nothing calls this directly

Calls 2

WechatySettingClass · 0.90

Tested by

no test coverage detected