From 896a526fd0aa0e5513479c15e3ffe0fda8bf9622 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Wed, 14 Feb 2024 02:22:19 +0100 Subject: [PATCH] fix deploy and update --- commands/message/dev/deploy.js | 2 +- commands/message/dev/update.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/message/dev/deploy.js b/commands/message/dev/deploy.js index 3d74d87..e152393 100644 --- a/commands/message/dev/deploy.js +++ b/commands/message/dev/deploy.js @@ -16,7 +16,7 @@ module.exports = { onBefore: context => context.user.isClientOwner, onCancel: () => { }, run: async (context) => { - if (process.env.environment.toLowerCase() !== "prod") return await editOrReply(context, createEmbed("error", context, "Cannot deploy on this instance.")) + if (!["production","prod","prodnew"].includes(process.env.environment)) return await editOrReply(context, createEmbed("error", context, "Cannot update on this instance.")) await editOrReply(context, createEmbed("loading", context, "Querying deploy...")) try { diff --git a/commands/message/dev/update.js b/commands/message/dev/update.js index d6304e9..8d2b496 100644 --- a/commands/message/dev/update.js +++ b/commands/message/dev/update.js @@ -16,7 +16,7 @@ module.exports = { onBefore: context => context.user.isClientOwner, onCancel: () => { }, run: async (context) => { - if (process.env.environment !== "prodnew") return await editOrReply(context, createEmbed("error", context, "Cannot update on this instance.")) + if (!["production","prod","prodnew"].includes(process.env.environment)) return await editOrReply(context, createEmbed("error", context, "Cannot update on this instance.")) await editOrReply(context, createEmbed("loading", context, "Querying manager...")) try {