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

Function main

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

doc

()

Source from the content-addressed store, hash-verified

49
50
51async def main() -> None:
52 """doc"""
53 # pylint: disable=W0603
54 global bot
55 options = WechatyOptions(
56 host='127.0.0.1',
57 port=5005,
58 puppet_options=PuppetOptions(
59 token='your-token'
60 )
61 )
62
63 bot = Wechaty(
64 options=options
65 ).on('message', message)
66 bot.use(SimpleServerWechatyPlugin())
67
68 await bot.start()
69
70
71asyncio.run(main())

Callers 1

Calls 6

WechatyOptionsClass · 0.90
WechatyClass · 0.90
useMethod · 0.80
onMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected