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