From caf27269a9bba43ba15e8af943afbff7c61b07af Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 3 May 2020 19:00:18 -0400 Subject: [PATCH] set to 0 instead of -1 --- src/commands/limits_setramnotification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/limits_setramnotification.ts b/src/commands/limits_setramnotification.ts index aa60271..4ecf5be 100644 --- a/src/commands/limits_setramnotification.ts +++ b/src/commands/limits_setramnotification.ts @@ -19,7 +19,7 @@ export default class Limits_SetRAMNotification extends Command { if (Number(args[0]) >= tier.resourceLimits.ram) return message.channel.createMessage(`***${this.client.stores.emojis.error} You cannot set your notification limit to be set to or above your hard limit.***`); if (Number(args[0]) < 0) return message.channel.createMessage(`***${this.client.stores.emojis.error} You cannot set your notification limit to a negative number.***`); if (Number(args[0]) === 0) { - await account.updateOne({ $set: { ramLimitNotification: -1 } }); + await account.updateOne({ $set: { ramLimitNotification: 0 } }); return message.channel.createMessage(`***${this.client.stores.emojis.success} You have disabled notifications.***`); } await account.updateOne({ $set: { ramLimitNotification: Number(args[0]) } });