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

Class SimpleServerWechatyPlugin

examples/plugin-server-bot.py:21–29  ·  view source on GitHub ↗

simple hello wechaty web server plugin

Source from the content-addressed store, hash-verified

19
20
21class SimpleServerWechatyPlugin(WechatyPlugin):
22 """
23 simple hello wechaty web server plugin
24 """
25 async def blueprint(self, app: Quart) -> None:
26 @app.route('/wechaty')
27 def hello_wechaty() -> str:
28 """helo blueprint function"""
29 return 'hello wechaty'
30
31
32async def message(msg: Message) -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected