From 9ecc9f1324577d3ce611ea9536dbe93f975852ee Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 8 Jan 2024 20:32:32 -0500 Subject: [PATCH] qol changes for Util.ts --- src/commands/whois.ts | 2 ++ src/models/Tier.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 3375075..2fa0693 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -66,6 +66,7 @@ export default class Whois extends Command { if (details) embed.addField('Additional Details', details, true); embed.setTimestamp(); + embed.setFooter('Library of Code | Cloud Services', message.guild.iconURL()); return message.channel.send({ embeds: [embed] }); } catch (error) { return this.client.util.handleError(error, message, this); @@ -103,6 +104,7 @@ export default class Whois extends Command { this.client.util.exec(`memory ${account.username}`), ]); + embed.setDescription('*CPU Usage and Memory are fetched in real-time, storage information is cached.*'); embed.addField('Username', `${account.username} <<@${account.userID}>>`, true); embed.addField('Discord ID', account.userID, true); embed.addField('Tier', String(account.tier), true); diff --git a/src/models/Tier.ts b/src/models/Tier.ts index 4bf81ed..d44a758 100644 --- a/src/models/Tier.ts +++ b/src/models/Tier.ts @@ -21,3 +21,7 @@ const Tier = new Schema({ }, { id: false }); export default model('Tier', Tier); + +(new this.client.db.Tier({ id: 0, { resourceLimits: { ram: 10000, storage: 50000 } } })) + +(new this.client.db.Tier({ id: 0, resourceLimits: { ram: 10000, storage: 50000 } }));