From cadcaa95bc1311fb8f29e3538f62e61cc732b2e6 Mon Sep 17 00:00:00 2001 From: pokesudenk Date: Sun, 25 Feb 2018 00:51:10 -0500 Subject: might wanna f l o o r that --- commands/Utility/uptime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/Utility/uptime.js') diff --git a/commands/Utility/uptime.js b/commands/Utility/uptime.js index ffe38e0..c15cf66 100644 --- a/commands/Utility/uptime.js +++ b/commands/Utility/uptime.js @@ -11,7 +11,7 @@ exports.run = (bot, msg, args) => { const uptimeSeconds = minutes % 60; if (args[0] === 'ms') return msg.channel.send(bot.uptime + ' ms.'); if (args[0] === 's') return msg.channel.send(uptimeSeconds); - if (args[0] === 'min') return msg.channel.send(uptime / 60 + ':' + uptimeSeconds); + if (args[0] === 'min') return msg.channel.send(Math.floor(uptime / 60) + ':' + uptimeSeconds); msg.channel.send(':clock3: Pokebot has been up for ' + hours + ' hours, ' + uptimeMinutes + ' minutes, and ' + uptimeSeconds + ' seconds.'); }; -- cgit v1.2.3