fixes for stuff

merge-requests/4/head
Matthew 2020-05-03 19:11:23 -04:00
parent deb2c0fc20
commit c690a5425b
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 3 additions and 1 deletions

View File

@ -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();
if (acc.ramLimitNotification !== 0) {
await client.createMessage(channelID, { embed });
}
if ((memoryConversion >= acc.ramLimitNotification) && (acc.ramLimitNotification !== 0)) {
const notifyEmbed = new RichEmbed()
.setTitle('Cloud Account | Notification')