From f67907a61807e5bee7b93c442dde4415a812cc28 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 29 Sep 2018 17:59:04 +0200 Subject: [PATCH] seconds now only show 2 digits ( more cleaner ) --- commands/utility/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/utility/stats.js b/commands/utility/stats.js index 2ec374e4..418096a1 100644 --- a/commands/utility/stats.js +++ b/commands/utility/stats.js @@ -15,7 +15,7 @@ module.exports = class MeowCommand extends Command { let hours = Math.floor(totalSeconds / 3600); totalSeconds %= 3600; let minutes = Math.floor(totalSeconds / 60); - let seconds = totalSeconds % 60; + let seconds = totalSeconds.toFixed(0) % 60; let uptime = `${days} days, ${hours} hours, ${minutes} minutes and ${seconds} seconds`; return message.channel.send(`Servers: \`${this.client.guilds.size}\`\nChannels: \`${this.client.channels.size}\`\nUsers: \`${this.client.users.size}\`\nBot uptime: \`${uptime}\``); }