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

    0.1.10 • Public • Published

    WECHATY-PUPPET-MACPRO

    Install

    1. Init

      mkdir testPuppetMacpro
       
      npm init
    2. Install the latest wechaty

      npm install wechaty@next
    3. Install wechaty-puppet-macpro

      npm install wechaty-puppet-macpro
    4. Install other dependency

      npm install qrcode-terminal

    Example

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

    Install

    npm i unique-wechaty-puppet-macpro

    DownloadsWeekly Downloads

    1

    Version

    0.1.10

    License

    Apache-2.0

    Unpacked Size

    752 kB

    Total Files

    297

    Last publish

    Collaborators

    • cooper_fu