From f87a02fd17ac0380873e70489f64bff0c7f880c4 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 3 May 2020 18:31:31 -0400 Subject: [PATCH] fixes --- src/intervals/memory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intervals/memory.ts b/src/intervals/memory.ts index f0367b7..fd0d3b6 100644 --- a/src/intervals/memory.ts +++ b/src/intervals/memory.ts @@ -83,7 +83,7 @@ export default function memory(client: Client) { if (acc.ramLimitNotification === -1) return; const notifyEmbed = new RichEmbed() .setTitle('Cloud Account | Notification') - .setDescription(`You are about to reach your RAM resource limits, you are currently using '${String(memoryConversion)} MB' and your limit is '${String(userLimits.hard)} MB'. Please correct your usage to avoid further action.\nYou can set your notification preferences by running \`=limits set-ram-notification \`, you can disable these notifications by running \`=limits set-ram-notification -1\`.`) + .setDescription(`You are about to reach your RAM resource limits, you are currently using '${String(memoryConversion)} MB' and your limit is '${String(userLimits.hard - 10)} MB'. Please correct your usage to avoid further action.\nYou can set your notification preferences by running \`=limits set-ram-notification \`, you can disable these notifications by running \`=limits set-ram-notification -1\`.`) .addField('User', `${acc.username} | <@${acc.userID}>`, true) .addField('Technician', 'SYSTEM', true) .setFooter(client.user.username, client.user.avatarURL) @@ -103,8 +103,8 @@ export default function memory(client: Client) { Library of Code sp-us | Support Team `, }); + client.createMessage('580950455581147146', { embed: notifyEmbed }); } - client.createMessage('580950455581147146', { embed }); set.add(acc.username); } }