From 1528dd4d8f90a1417fe2f739b36755f3bcbd5408 Mon Sep 17 00:00:00 2001 From: Maseshi Date: Mon, 12 Dec 2022 02:35:28 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20Make=20the=20system=20r?= =?UTF-8?q?estart=20itself=20after=20an=20error.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/handlers/process.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/handlers/process.js b/source/handlers/process.js index 200aa5f8..68651874 100644 --- a/source/handlers/process.js +++ b/source/handlers/process.js @@ -28,6 +28,7 @@ module.exports = (client) => { process.on("SIGINT", () => { console.log(orangeBackground + whiteColor + " Bot is about to shut down. " + clearStyle); + if (client.mode === "start") process.exit(1); }); process.on('SIGUSR1', () => {