diff --git a/src/index.js b/src/index.js index e1abc9f..bdf4c88 100644 --- a/src/index.js +++ b/src/index.js @@ -67,4 +67,8 @@ bot.on("ready", async () => { } }); +bot.on("error", (err) => { + logger.error("hf:main", "Catching error: " + err); +}); + bot.connect();