Skip to content

Commit

Permalink
🔄️ Add a way to restart manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed Dec 11, 2022
1 parent 05eb935 commit f6fd042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/handlers/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
};

0 comments on commit f6fd042

Please sign in to comment.