提交 ffa254a9 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

say error

上级 65ae6519
......@@ -49,7 +49,10 @@ bot
bot.say('Wechaty login')
})
.on('logout' , user => log.info('Bot', `${user.name()} logouted`))
.on('error' , e => log.info('Bot', 'error: %s', e))
.on('error' , e => {
log.info('Bot', 'error: %s', e)
bot.say('Wechaty error: ' + e.message)
})
.on('scan', (url, code) => {
if (!/201|200/.test(String(code))) {
let loginUrl = url.replace(/\/qrcode\//, '/l/')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册