From d7bbed85b902be996e193a925f3d5e3b4d15fe26 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 00:34:33 -0500 Subject: [PATCH] Fix uptime format --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 89295c8..565fa22 100644 --- a/index.js +++ b/index.js @@ -91,12 +91,13 @@ client.on("message", async message => { }); async function aboutBot(message) { + const uptimeDays = client.uptime / 86400000; const aboutBotEmbed = new Discord.MessageEmbed() .setTitle("About me!") .setURL(`https://adat.link/awesomemod`) .setAuthor(client.user.tag, client.user.avatarURL()) .addField(`Servers`, client.guilds.size, true) - .addField(`Uptime`, client.uptime, true) + .addField(`Uptime`, `${uptimeDays.toFixed(1)} days`, true) .addField(`Invite Link`, `Click the title to add this bot to your server!`) .setFooter(`Client ID: ${client.user.id}`) .setTimestamp()