aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-02-25 00:51:10 -0500
committerpokesudenk <thisis@notarealema.il>2018-02-25 00:51:10 -0500
commitcadcaa95bc1311fb8f29e3538f62e61cc732b2e6 (patch)
tree2edadb28f1020097d7d2bb8ccef17965dc3063f3 /commands
parent71deacc33391b223606a272ddec1e614528a22f9 (diff)
downloadPokeBot-cadcaa95bc1311fb8f29e3538f62e61cc732b2e6.tar.gz
PokeBot-cadcaa95bc1311fb8f29e3538f62e61cc732b2e6.tar.bz2
PokeBot-cadcaa95bc1311fb8f29e3538f62e61cc732b2e6.zip
might wanna f l o o r that
Diffstat (limited to 'commands')
-rw-r--r--commands/Utility/uptime.js2
1 files changed, 1 insertions, 1 deletions
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.');
};