From f6fd042c6d4e3f02355adf2360c10d87163c5b5c Mon Sep 17 00:00:00 2001 From: Maseshi Date: Mon, 12 Dec 2022 02:44:01 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20Add=20a=20way=20to=20re?= =?UTF-8?q?start=20manually.?= 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 68651874..f8ed732e 100644 --- a/source/handlers/process.js +++ b/source/handlers/process.js @@ -103,5 +103,6 @@ module.exports = (client) => { process.on("exit", (code) => { console.log(grayBackground + blackColor + " Bot is about to shut down with the code: " + code + " " + clearStyle); + if (client.mode === "start") process.exit(1); }); }; \ No newline at end of file