handle Client error event
This commit is contained in:
parent
b176fe8184
commit
416b79ca97
1 changed files with 4 additions and 0 deletions
|
@ -67,4 +67,8 @@ bot.on("ready", async () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bot.on("error", (err) => {
|
||||||
|
logger.error("hf:main", "Catching error: " + err);
|
||||||
|
});
|
||||||
|
|
||||||
bot.connect();
|
bot.connect();
|
||||||
|
|
Loading…
Reference in a new issue