/python-wechaty-puppet-hostie

Python Hostie Puppet for Wechaty

Primary LanguagePythonApache License 2.0Apache-2.0

wechaty-puppet-hostie Python 3.7 PyPI GitHub Actions

Powered by Wechaty

Hostie

PyPI Version PyPI - Downloads

Python Hostie Puppet for Wechaty

Features

  1. Consume hostie service

Usage

import asyncio
from wechaty import Wechaty
from wechaty_puppet_hostie import HostiePuppet

bot = Wechaty(HostiePuppet("your-token-here"))
bot.on('message', lambda x: print(x))

asyncio.run(wechaty.start())

Environment Variables

1 WECHATY_PUPPET_HOSTIE_TOKEN

The token set to this environment variable will become the default value of puppetOptions.token

WECHATY_PUPPET_HOSTIE_TOKEN=secret python bot.py

History

master

v0.0.1 (Mar 10, 2020)

  1. Init Python version
  2. Published to PyPI

Author

Huan LI (李卓桓) zixia@zixia.net

Profile of Huan LI (李卓桓) on StackOverflow

Copyright & License

  • Code & Docs © 2020-now Huan LI <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons