diff --git a/example/ding-dong-bot.ts b/example/ding-dong-bot.ts index 74c64017ecf137426434afb70cc6ce279437b078..526e7e8d3e6223e11c2bba268a865a6ec4890762 100644 --- a/example/ding-dong-bot.ts +++ b/example/ding-dong-bot.ts @@ -84,8 +84,8 @@ bot.init() process.exit(-1) }) -finis((code, reason) => { - const exitMsg = `Wechaty exit ${code} because of ${reason} ` +finis((code, signal) => { + const exitMsg = `Wechaty exit ${code} because of ${signal} ` console.log(exitMsg) bot.say(exitMsg) })