qol changes for Util.ts
parent
2a9492ccbb
commit
9ecc9f1324
|
@ -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);
|
||||
|
|
|
@ -21,3 +21,7 @@ const Tier = new Schema<TierInterface>({
|
|||
}, { id: false });
|
||||
|
||||
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 } }));
|
||||
|
|
Loading…
Reference in New Issue