diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-25 00:49:59 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-25 00:49:59 -0500 |
| commit | 71deacc33391b223606a272ddec1e614528a22f9 (patch) | |
| tree | 5787415edce37b271bb92cbe897b5410ee4188dc /commands/Utility | |
| parent | 3122617fb4230202dad1b4e521e6b0d54ea9865f (diff) | |
| download | PokeBot-71deacc33391b223606a272ddec1e614528a22f9.tar.gz PokeBot-71deacc33391b223606a272ddec1e614528a22f9.tar.bz2 PokeBot-71deacc33391b223606a272ddec1e614528a22f9.zip | |
forgot ARRAYS gamers
Diffstat (limited to 'commands/Utility')
| -rw-r--r-- | commands/Utility/uptime.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/Utility/uptime.js b/commands/Utility/uptime.js index 1d8529c..ffe38e0 100644 --- a/commands/Utility/uptime.js +++ b/commands/Utility/uptime.js @@ -9,9 +9,9 @@ exports.run = (bot, msg, args) => { uptimeMinutes = uptimeMinutes - 60; } const uptimeSeconds = minutes % 60; - if (args === 'ms') return msg.channel.send(bot.uptime + ' ms.'); - if (args === 's') return msg.channel.send(uptimeSeconds); - if (args === 'min') return msg.channel.send(uptime / 60 + ':' + uptimeSeconds) + 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); msg.channel.send(':clock3: Pokebot has been up for ' + hours + ' hours, ' + uptimeMinutes + ' minutes, and ' + uptimeSeconds + ' seconds.'); }; |
