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 {