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

do not stop when error

上级 7dfc0f82
...@@ -116,7 +116,7 @@ bot.on('error', async e => { ...@@ -116,7 +116,7 @@ bot.on('error', async e => {
if (bot.logonoff()) { if (bot.logonoff()) {
await bot.say('Wechaty error: ' + e.message).catch(console.error) await bot.say('Wechaty error: ' + e.message).catch(console.error)
} }
await bot.stop() // await bot.stop()
}) })
let quiting = false let quiting = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册