qol changes for Util.ts

master
Matthew 2024-01-08 20:32:32 -05:00
parent 2a9492ccbb
commit 9ecc9f1324
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
2 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,7 @@ export default class Whois extends Command {
if (details) embed.addField('Additional Details', details, true); if (details) embed.addField('Additional Details', details, true);
embed.setTimestamp(); embed.setTimestamp();
embed.setFooter('Library of Code | Cloud Services', message.guild.iconURL());
return message.channel.send({ embeds: [embed] }); return message.channel.send({ embeds: [embed] });
} catch (error) { } catch (error) {
return this.client.util.handleError(error, message, this); 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}`), 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('Username', `${account.username} <<@${account.userID}>>`, true);
embed.addField('Discord ID', account.userID, true); embed.addField('Discord ID', account.userID, true);
embed.addField('Tier', String(account.tier), true); embed.addField('Tier', String(account.tier), true);

View File

@ -21,3 +21,7 @@ const Tier = new Schema<TierInterface>({
}, { id: false }); }, { id: false });
export default model<TierInterface>('Tier', Tier); export default model<TierInterface>('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 } }));