aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/botInfo.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-24 18:29:57 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-24 18:29:57 -0400
commit9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c (patch)
tree4b95a06ff6991207ab8b8e93f0bca26e24a97f80 /src/commands/info/botInfo.ts
parent6b8115ab1ec94d4330019fc7a93e094d9d64c48e (diff)
downloadtanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.tar.gz
tanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.tar.bz2
tanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.zip
fix: breaking changes
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] });