0.1.7 • Published 1 year ago

wechaty-puppet-wcferry v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

wechaty-puppet-wcferry

npm version npm downloads bundle JSDocs License

Wechaty Puppet for WechatFerry

Quick Start

Install:

pnpm add wechaty wechaty-puppet-wcferry

Import:

import { WechatyBuilder, log } from 'wechaty'
import { PuppetWcferry } from 'wechaty-puppet-wcferry'

const puppet = new PuppetWcferry()
const bot = WechatyBuilder.build({ puppet })

bot.on('start', () => log.info('start'))
bot.on('ready', () => log.info('ready'))
bot.on('login', user => log.info(`${user.name()} login`))
bot.on('message', (msg) => {
  const taler = msg.talker()
  if (msg.type() === bot.Message.Type.Text) {
    log.info(`${taler.name()}: ${msg.text()}`)
  }
})

bot.start()

Funding

License

MIT License © 2024-PRESENT mrrhq

0.1.7

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago