diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-25 00:52:38 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-25 00:52:38 -0500 |
| commit | abc2868a2d65df654b071a447c1a4eba77e76b2c (patch) | |
| tree | 2a6191e55157e04e128ac089bfd8489ef7737f74 | |
| parent | cadcaa95bc1311fb8f29e3538f62e61cc732b2e6 (diff) | |
| download | PokeBot-abc2868a2d65df654b071a447c1a4eba77e76b2c.tar.gz PokeBot-abc2868a2d65df654b071a447c1a4eba77e76b2c.tar.bz2 PokeBot-abc2868a2d65df654b071a447c1a4eba77e76b2c.zip | |
better formatting
| -rw-r--r-- | commands/Utility/uptime.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/Utility/uptime.js b/commands/Utility/uptime.js index c15cf66..bc9b1fa 100644 --- a/commands/Utility/uptime.js +++ b/commands/Utility/uptime.js @@ -10,8 +10,8 @@ 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(Math.floor(uptime / 60) + ':' + uptimeSeconds); + if (args[0] === 's') return msg.channel.send(uptimeSeconds + ' seconds.'); + if (args[0] === 'min') return msg.channel.send(Math.floor(uptime / 60) + ' minutes ' + uptimeSeconds + ' seconds.'); msg.channel.send(':clock3: Pokebot has been up for ' + hours + ' hours, ' + uptimeMinutes + ' minutes, and ' + uptimeSeconds + ' seconds.'); }; |
