doc
()
| 49 | |
| 50 | |
| 51 | async 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 | |
| 71 | asyncio.run(main()) |
no test coverage detected