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

use finis instead of nodeCleanup

上级 02e815ea
......@@ -9,7 +9,7 @@
/* tslint:disable:variable-name */
const QrcodeTerminal = require('qrcode-terminal')
const nodeCleanup = require('node-cleanup')
const finis = require('finis')
import {
Wechaty
......@@ -81,7 +81,7 @@ bot.init()
process.exit(-1)
})
nodeCleanup((reason, code) => {
finis((code, reason) => {
const exitMsg = `Wechaty exit ${code} because of ${reason} `
console.log(exitMsg)
bot.say(exitMsg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册