fixes
parent
9201599aae
commit
eb1cce3d70
|
@ -76,8 +76,7 @@ export default function memory(client: Client) {
|
||||||
embed.setFooter(client.user.username, client.user.avatarURL);
|
embed.setFooter(client.user.username, client.user.avatarURL);
|
||||||
embed.setTimestamp();
|
embed.setTimestamp();
|
||||||
await client.createMessage(channelID, { embed });
|
await client.createMessage(channelID, { embed });
|
||||||
if (memoryConversion >= acc.ramLimitNotification) {
|
if ((memoryConversion >= acc.ramLimitNotification) && (acc.ramLimitNotification !== -1)) {
|
||||||
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 - 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\`.`)
|
.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\`.`)
|
||||||
|
|
Loading…
Reference in New Issue