Added exit event in Client.ts

This commit is contained in:
Christer Warén 2021-09-09 12:05:39 +03:00
parent 90a93d35f7
commit 0b1cb03305

View File

@ -89,6 +89,10 @@ class RadioClient extends Client {
process.on('uncaughtException', (error) => {
require(`${events}uncaughtException`).execute(this, error);
});
process.on('exit', () => {
this.funcs.logger("Bot", "Stopping");
});
this.on("error", error => {
console.error(error);