You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const { Wechaty } = require('wechaty')
Wechaty.instance()
.on('scan', (url, code) => console.log(`Scan QR Code to login: ${code}\n${url}`))
.on('login', user => console.log(`User ${user} logined`))
.on('message', message => console.log(`Message: ${message}`))
.init()
Shell log
Starting Wechaty v0.10.44 with Node.js v7.10.1 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended by your bot script.
Executing babel-node --presets env mybot.js
07:28:02 WARN Wechaty init() DEPRECATED and will be removed after Jun 2018. Use start() instead.
07:28:02 INFO Wechaty v0.10.44 starting...
Scan QR Code to login: 0
https://login.weixin.qq.com/qrcode/AYN742FUZA==
Scan QR Code to login: 408
https://login.weixin.qq.com/qrcode/AYN742FUZA==
Scan QR Code to login: 201
https://login.weixin.qq.com/qrcode/AYN742FUZA==
07:30:38 WARN PuppetWeb initWatchdogForPuppet() dog.on(reset) last food: inited
07:32:31 WARN PuppetWeb initScanWatchdog() on(reset) lastFood: https://login.weixin.qq.com/qrcode/AYN742FUZA==, timeLeft: 0
07:32:39 WARN PuppetWeb initWatchdogForPuppet() dog.on(reset) last food: inited
07:34:41 WARN PuppetWeb initWatchdogForPuppet() dog.on(reset) last food: inited
Problem
It login success on my phone, which showing the web wechat login success. But, i can't see login code 200 in the console, just the warn of PuppetWeb.
The text was updated successfully, but these errors were encountered:
My code
Shell log
Problem
It login success on my phone, which showing the web wechat login success. But, i can't see login code 200 in the console, just the warn of PuppetWeb.
The text was updated successfully, but these errors were encountered: