Skip to content

AIAmber/python-wechaty-puppet-service

 
 

Repository files navigation

wechaty-puppet-service Python 3.7 PyPI GitHub Actions

Powered by Wechaty

Service

PyPI Version PyPI - Downloads

Python Service Puppet for Wechaty

Features

  1. Consume Wechaty Puppet Service

Usage

import asyncio
from wechaty import Wechaty
from wechaty_puppet_service import PuppetService

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

asyncio.run(bot.start())

Environment Variables

1 WECHATY_PUPPET_SERVICE_TOKEN

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

WECHATY_PUPPET_SERVICE_TOKEN=secret python bot.py

or you can use TOKEN or token environment variable alias name to set token, for example:

TOKEN=secret python bot.py
# or
token=secret python bot.py

History

master

v0.7 (Mar, 2021)

Rename from wechaty-puppet-hostie -> wechaty-puppet-service

v0.0.1 (Mar 10, 2020)

  1. Init Python version
  2. Published to PyPI

Authors

Copyright & License

  • Code & Docs © 2020-now Huan LI <[email protected]>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.0%
  • Makefile 5.0%