https://github.com/wechaty/wechaty-puppet-padpro
https://github.com/wechaty/wechaty-puppet-padpro
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wechaty/wechaty-puppet-padpro
- Owner: wechaty
- License: apache-2.0
- Created: 2018-10-14T09:52:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T01:28:03.000Z (about 6 years ago)
- Last Synced: 2025-08-29T07:56:59.926Z (11 months ago)
- Language: TypeScript
- Size: 635 KB
- Stars: 242
- Watchers: 15
- Forks: 64
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WECHATY-PUPPET-PADPRO
[](https://github.com/chatie/wechaty)
[](https://badge.fury.io/js/wechaty-puppet-padpro)
[](https://greenkeeper.io/)
[](https://app.codacy.com/app/windmemory/wechaty-puppet-padpro?utm_source=github.com&utm_medium=referral&utm_content=botorange/wechaty-puppet-padpro&utm_campaign=Badge_Grade_Settings)
This module is a sub module of [Wechaty Puppet](https://github.com/Chatie/wechaty/issues/1167).
See more: [Wechaty](https://github.com/chatie/wechaty) [](https://badge.fury.io/js/wechaty) [](https://hub.docker.com/r/zixia/wechaty/) [](https://www.typescriptlang.org/) [](https://greenkeeper.io/)
## Install
```shell
npm install wechaty
npm install wechaty-puppet-padpro
```
## Example
```ts
import { Wechaty } from 'wechaty'
import { PuppetPadpro } from 'wechaty-puppet-padpro'
const WECHATY_PUPPET_PADPRO_TOKEN = 'your-token-here'
const puppet = new PuppetPadpro({
token: WECHATY_PUPPET_PADPRO_TOKEN,
})
const bot = new Wechaty({
puppet,
})
// Setting Done
// Run wechaty
bot
.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://api.qrserver.com/v1/create-qr-code/?data=${encodeURIComponent(qrcode)}`))
.on('login', user => console.log(`User ${user} logined`))
.on('message', message => console.log(`Message: ${message}`))
.start()
```
## Docs
[https://docs.chatie.io](https://docs.chatie.io)
## Token
* We stop selling the token service, only provide technical support to our partner. If you have any needs, please [click here to get alpha test](https://github.com/Chatie/wechaty/issues/1846).
## LICENSE
Apache-2.0