From 0057360045f8cfbd88bbbdc617b8d4ad1e9da540 Mon Sep 17 00:00:00 2001 From: Maseshi Date: Mon, 12 Dec 2022 14:13:10 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20Modify=20the=20restart?= =?UTF-8?q?=20policy.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/handlers/process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/handlers/process.js b/source/handlers/process.js index f8ed732e..db7a397d 100644 --- a/source/handlers/process.js +++ b/source/handlers/process.js @@ -28,7 +28,6 @@ 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', () => { @@ -67,6 +66,7 @@ module.exports = (client) => { console.info(boldStyle + "Discord.js:" + clearStyle + " v" + discord.version); console.info(boldStyle + "Node.js: " + clearStyle + process.version); console.groupEnd(); + if (client.mode === "start") process.exit(1); }); process.on("uncaughtExceptionMonitor", (err, origin) => { @@ -99,10 +99,10 @@ module.exports = (client) => { console.info(boldStyle + "Discord.js:" + clearStyle + " v" + discord.version); console.info(boldStyle + "Node.js: " + clearStyle + process.version); console.groupEnd(); + if (client.mode === "start") process.exit(1); }); 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