unique-wechaty-puppet-padplus
TypeScript icon, indicating that this package has built-in type declarations

0.0.98 • Public • Published

WECHATY-PUPPET-PADPLUS

Powered by Wechaty NPM Version npm (tag) TypeScript Linux/Mac Build Status

Notice

  1. Wechaty-puppet-padplus is still in very Early Alpha Stage, please make sure you have the necessary engineering technics to deal with the bugs instead of just asking for support.
  2. You are welcome to file an issue to reproduce the problem, if it is reproducible, we will fix that as soon as possible.
  3. If you need a stable version, please keep waiting until we release the stable one.

Install

1. Init

mkdir padplus
 
npm init

2. Install the latest wechaty

npm install wechaty

3. Install wechaty-puppet-macpro

Notice: wechaty-puppet-padplus still in alpha test period, so we keep updating the package, you should install the latest packge by using @latest until we release the stable package.

npm install wechaty-puppet-padplus@latest

4. Install other dependency

npm install qrcode-terminal

Example

import { Wechaty       } from 'wechaty';
import { PuppetPadplus } from 'wechaty-puppet-padplus';
import { generate      } from 'qrcode-terminal';
 
const token = 'your-token';
 
const puppet = new PuppetPadplus({
  token,
})
 
const bot = new Wechaty({
  puppet,
});
 
bot
  .on('scan', (qrcode) => {
    generate(qrcode, {
      small: true
    });
  })
  .on('message', msg => {
    console.log(`msg : ${msg}`)
  })
  .start()

Package Sidebar

Install

npm i unique-wechaty-puppet-padplus

Weekly Downloads

0

Version

0.0.98

License

Apache-2.0

Unpacked Size

889 kB

Total Files

157

Last publish

Collaborators

  • cooper_fu