From 2ce15570ddfb60e82d70d59fb1085c13eefd678a Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 18 Feb 2024 14:40:10 +0100 Subject: [PATCH] Updated botinfo comamnd --- src/commands/botinfo.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/botinfo.ts b/src/commands/botinfo.ts index 998c105..f293550 100644 --- a/src/commands/botinfo.ts +++ b/src/commands/botinfo.ts @@ -17,6 +17,7 @@ export = { .setDMPermission(false), async execute(interaction, client) { + const { default: prettyMs } = await import("pretty-ms") const castedDeps = dependencies as { [key: string]: string } const castedDevDeps = devDependencies as { [key: string]: string } let osInfo: string @@ -55,7 +56,7 @@ export = { > **Discord.js Version:** \`${(castedDeps["discord.js"]).replace("^", "")}\` > **Dependencies (${Object.keys(castedDeps).length}):** \`${deps}\` > **Dev Dependencies (${Object.keys(castedDevDeps).length}):** \`${devDeps}\` - > **Uptime:** \`${Math.floor(client.uptime! / 1000 / 60)} minutes\` + > **Uptime:** \`${prettyMs(client.uptime!, { verbose: true })}\` __**Cache**__ > **Guilds:** \`${client.guilds.cache.size}\`