handle Client error event

This commit is contained in:
Cynthia Foxwell 2021-06-01 12:59:15 -06:00
parent b176fe8184
commit 416b79ca97
1 changed files with 4 additions and 0 deletions

View File

@ -67,4 +67,8 @@ bot.on("ready", async () => {
}
});
bot.on("error", (err) => {
logger.error("hf:main", "Catching error: " + err);
});
bot.connect();