fix deploy and update

This commit is contained in:
derpystuff 2024-02-14 02:22:19 +01:00
parent 7e99e9fe11
commit 896a526fd0
2 changed files with 2 additions and 2 deletions

View file

@ -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 {