From c690a5425b1b6a928520098c7bc0c3b949021839 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 3 May 2020 19:11:23 -0400 Subject: [PATCH] fixes for stuff --- src/intervals/memory.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intervals/memory.ts b/src/intervals/memory.ts index 470a160..64adef3 100644 --- a/src/intervals/memory.ts +++ b/src/intervals/memory.ts @@ -66,7 +66,9 @@ export default function memory(client: Client) { embed.addField('Memory Limit', `${String(userLimits.hard)} MB`, true); embed.setFooter(client.user.username, client.user.avatarURL); embed.setTimestamp(); - await client.createMessage(channelID, { embed }); + if (acc.ramLimitNotification !== 0) { + await client.createMessage(channelID, { embed }); + } if ((memoryConversion >= acc.ramLimitNotification) && (acc.ramLimitNotification !== 0)) { const notifyEmbed = new RichEmbed() .setTitle('Cloud Account | Notification')