Home

Awesome

WECHATY-PUPPET-PADPRO

Powered by Wechaty npm version Greenkeeper badge Codacy Badge

This module is a sub module of Wechaty Puppet.

See more: Wechaty NPM Version Docker Pulls TypeScript Greenkeeper badge

Install

npm install wechaty
npm install wechaty-puppet-padpro

Example

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

Token

LICENSE

Apache-2.0