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

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