1
0
Fork 0
refactor/models
Matthew 2020-05-03 18:31:31 -04:00
parent b784d91abf
commit f87a02fd17
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ export default function memory(client: Client) {
if (acc.ramLimitNotification === -1) return; if (acc.ramLimitNotification === -1) return;
const notifyEmbed = new RichEmbed() const notifyEmbed = new RichEmbed()
.setTitle('Cloud Account | Notification') .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 <preferred ram threshold in MB>\`, 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 <preferred ram threshold in MB>\`, you can disable these notifications by running \`=limits set-ram-notification -1\`.`)
.addField('User', `${acc.username} | <@${acc.userID}>`, true) .addField('User', `${acc.username} | <@${acc.userID}>`, true)
.addField('Technician', 'SYSTEM', true) .addField('Technician', 'SYSTEM', true)
.setFooter(client.user.username, client.user.avatarURL) .setFooter(client.user.username, client.user.avatarURL)
@ -103,8 +103,8 @@ export default function memory(client: Client) {
<b><i>Library of Code sp-us | Support Team</i></b> <b><i>Library of Code sp-us | Support Team</i></b>
`, `,
}); });
client.createMessage('580950455581147146', { embed: notifyEmbed });
} }
client.createMessage('580950455581147146', { embed });
set.add(acc.username); set.add(acc.username);
} }
} }