Python Padplus Puppet for Wechaty
- Consume padplus service
import asyncio
from wechaty import Wechaty
from wechaty_puppet_padplus import PadPlusPuppet
bot = Wechaty(PadPlusPuppet("your-token-here"))
bot.on('message', lambda x: print(x))
asyncio.run(bot.start())
The token set to this environment variable will become the default value of puppetOptions.token
WECHATY_PUPPET_PADPLUS_TOKEN=secret python bot.py
- Init Python version
JingJing Wu (吴京京) 1435130236@qq.com
- Code & Docs © 2020-now JingJing Wu 1435130236@qq.com
- Code released under the Apache-2.0 License
- Docs released under Creative Commons