mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Added exit event in Client.ts
This commit is contained in:
parent
90a93d35f7
commit
0b1cb03305
@ -90,6 +90,10 @@ class RadioClient extends Client {
|
|||||||
require(`${events}uncaughtException`).execute(this, error);
|
require(`${events}uncaughtException`).execute(this, error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.on('exit', () => {
|
||||||
|
this.funcs.logger("Bot", "Stopping");
|
||||||
|
});
|
||||||
|
|
||||||
this.on("error", error => {
|
this.on("error", error => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user