From 24510dcc4c8435373e40e0b096ddc901028d5500 Mon Sep 17 00:00:00 2001 From: Minzkraut Date: Tue, 1 Aug 2023 00:41:59 +0200 Subject: [PATCH] Bot: Change ENV to NODE_ENV in ready.js --- events/ready.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/ready.js b/events/ready.js index f7f01b1..1ab2fb7 100644 --- a/events/ready.js +++ b/events/ready.js @@ -16,7 +16,7 @@ module.exports = { (async () => { try { console.log("Registering commands..."); - if(process.env.ENV === "production") { + if(process.env.NODE_ENV === "production") { await rest.put(Routes.applicationCommands(CLIENT_ID), {body: commands }); await rest.put(Routes.applicationGuildCommands(CLIENT_ID, process.env.GUILD_ID), {body: [] }); //Clear Guild commands on prod console.log("Global commands registered");