From 0b1cb03305267332a06f131d16b865b6277f1270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 9 Sep 2021 12:05:39 +0300 Subject: [PATCH] Added exit event in Client.ts --- src/Client.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Client.ts b/src/Client.ts index 761e7cd..8cc6647 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -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);