aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/botInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info/botInfo.ts')
-rw-r--r--src/commands/info/botInfo.ts58
1 files changed, 30 insertions, 28 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index 1ea54f3..3338824 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -41,34 +41,36 @@ export default class BotInfoCommand extends BushCommand {
if (repoUrl.includes('.git')) repoUrl = repoUrl.substring(0, repoUrl.length - 4);
const embed = new EmbedBuilder()
.setTitle('Bot Info:')
- .addFields({ name: '**Uptime**', value: util.humanizeDuration(client.uptime!, 2), inline: true })
- .addFields({
- name: '**Memory Usage**',
- value: `System: ${prettyBytes(os.totalmem() - os.freemem(), { binary: true })}/${prettyBytes(os.totalmem(), {
- binary: true
- })}\nHeap: ${prettyBytes(process.memoryUsage().heapUsed, { binary: true })}/${prettyBytes(
- process.memoryUsage().heapTotal,
- { binary: true }
- )}`,
- inline: true
- })
- .addFields({ name: '**CPU Usage**', value: `${client.stats.cpu}%`, inline: true })
- .addFields({ name: '**Platform**', value: Platform[process.platform], inline: true })
- .addFields({ name: '**Commands Used**', value: `${client.stats.commandsUsed.toLocaleString()}`, inline: true })
- .addFields({ name: '**Servers**', value: client.guilds.cache.size.toLocaleString(), inline: true })
- .addFields({ name: '**Users**', value: client.users.cache.size.toLocaleString(), inline: true })
- .addFields({ name: '**Discord.js Version**', value: discordJSVersion, inline: true })
- .addFields({ name: '**Node.js Version**', value: process.version.slice(1), inline: true })
- .addFields({ name: '**Commands**', value: client.commandHandler.modules.size.toLocaleString(), inline: true })
- .addFields({ name: '**Listeners**', value: client.listenerHandler.modules.size.toLocaleString(), inline: true })
- .addFields({ name: '**Inhibitors**', value: client.inhibitorHandler.modules.size.toLocaleString(), inline: true })
- .addFields({ name: '**Tasks**', value: client.taskHandler.modules.size.toLocaleString(), inline: true })
- .addFields({
- name: '**Current Commit**',
- value: `[${currentCommit.substring(0, 7)}](${repoUrl}/commit/${currentCommit})`,
- inline: true
- })
- .addFields({ name: '**Developers**', value: developers, inline: true })
+ .addFields([
+ { name: '**Uptime**', value: util.humanizeDuration(client.uptime!, 2), inline: true },
+ {
+ name: '**Memory Usage**',
+ value: `System: ${prettyBytes(os.totalmem() - os.freemem(), { binary: true })}/${prettyBytes(os.totalmem(), {
+ binary: true
+ })}\nHeap: ${prettyBytes(process.memoryUsage().heapUsed, { binary: true })}/${prettyBytes(
+ process.memoryUsage().heapTotal,
+ { binary: true }
+ )}`,
+ inline: true
+ },
+ { name: '**CPU Usage**', value: `${client.stats.cpu}%`, inline: true },
+ { name: '**Platform**', value: Platform[process.platform], inline: true },
+ { name: '**Commands Used**', value: `${client.stats.commandsUsed.toLocaleString()}`, inline: true },
+ { name: '**Servers**', value: client.guilds.cache.size.toLocaleString(), inline: true },
+ { name: '**Users**', value: client.users.cache.size.toLocaleString(), inline: true },
+ { name: '**Discord.js Version**', value: discordJSVersion, inline: true },
+ { name: '**Node.js Version**', value: process.version.slice(1), inline: true },
+ { name: '**Commands**', value: client.commandHandler.modules.size.toLocaleString(), inline: true },
+ { name: '**Listeners**', value: client.listenerHandler.modules.size.toLocaleString(), inline: true },
+ { name: '**Inhibitors**', value: client.inhibitorHandler.modules.size.toLocaleString(), inline: true },
+ { name: '**Tasks**', value: client.taskHandler.modules.size.toLocaleString(), inline: true },
+ {
+ name: '**Current Commit**',
+ value: `[${currentCommit.substring(0, 7)}](${repoUrl}/commit/${currentCommit})`,
+ inline: true
+ },
+ { name: '**Developers**', value: developers, inline: true }
+ ])
.setTimestamp()
.setColor(util.colors.default);
await message.util.reply({ embeds: [embed] });