MCPcopy
hub / github.com/wechaty/python-wechaty / get_plugin_setting

Method get_plugin_setting

src/wechaty/plugin.py:670–679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

668
669 @app.route('/plugins/setting', methods=['GET'])
670 async def get_plugin_setting() -> Response:
671 name = request.args.get('plugin_name', None)
672 if name is None:
673 return error('plugin_name field is required')
674
675 if name not in self._plugins:
676 return error(f'plugin<{name}> not exist ...')
677 plugin: WechatyPlugin = self._plugins[name]
678
679 return success(plugin.setting.to_dict())
680
681 @app.route('/plugins/setting', methods=['POST', 'PUT'])
682 async def update_plugin_setting() -> Response:

Callers

nothing calls this directly

Calls 4

errorFunction · 0.90
successFunction · 0.90
getMethod · 0.80
to_dictMethod · 0.80

Tested by

no test coverage detected