From 54edc4c86309b0eacaecde16ac02edec861e2734 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 20 Aug 2020 19:56:59 -0400 Subject: [PATCH] fixes --- src/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.js b/src/main.js index 53cc918..c94a31f 100644 --- a/src/main.js +++ b/src/main.js @@ -52,6 +52,11 @@ module.exports = { console.log(''); }); + bot.on('error', err => { + console.error(err); + process.exit(1); + }); + bot.connect(); } };