From 8b304539ee75c6d7f1f04f2e9d25b2df0344a486 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 27 Jun 2023 00:49:32 +0500 Subject: [PATCH] no way --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b7febc81..7b932513 100644 --- a/index.js +++ b/index.js @@ -21,4 +21,5 @@ client.on("disconnect", () => client.logger.log("Bot is disconnecting...", "warn .on("reconnecting", () => client.logger.log("Bot reconnecting...", "warn")) .on("warn", warn => client.logger.log(warn, "warn")) .on("error", e => client.logger.log(`${e.message}\n${e.stack}`, "error")); -process.on("unhandledRejection", e => console.log(e)); \ No newline at end of file +process.on("unhandledRejection", e => console.log(e)); +process.on("uncaughtException", e => console.log(e)); \ No newline at end of file