wechaty-puppet-ferry
v0.0.1
Published
Wechaty Puppet for WechatFerry
Downloads
5
Readme
wechaty-puppet-ferry
Wechaty Puppet for WechatFerry
Quick Start
Install:
pnpm add wechaty wechaty-puppet-ferry
Import:
import { WechatyBuilder, log } from 'wechaty'
import { PuppetFerry } from 'wechaty-puppet-ferry'
const puppet = new PuppetFerry()
const bot = WechatyBuilder.build({ puppet })
bot.on('start', () => log.info('start'))
bot.on('ready', () => log.info('ready'))
bot.on('message', (msg) => {
const taler = msg.talker()
if (msg.type() === bot.Message.Type.Text) {
log.info(`${taler.name()}: ${msg.text()}`)
}
})
bot.start()
Callback:
Set WcfRust callback url to http://localhost:10011/callback
and click start button