diff options
| author | Unknown <Alee14498@gmail.com> | 2017-10-21 15:43:18 -0400 |
|---|---|---|
| committer | Unknown <Alee14498@gmail.com> | 2017-10-21 15:43:18 -0400 |
| commit | 1f245ddb081b15fbd3287aedc4f8965782e1fcc0 (patch) | |
| tree | 24de6b7d52196c32c7b0d77c3aaefed6b701f191 /commands/uptime.js | |
| parent | 1933ad0e02c3aefb677b7da0bf028e007ee286ba (diff) | |
| download | AleeBot-1f245ddb081b15fbd3287aedc4f8965782e1fcc0.tar.gz AleeBot-1f245ddb081b15fbd3287aedc4f8965782e1fcc0.tar.bz2 AleeBot-1f245ddb081b15fbd3287aedc4f8965782e1fcc0.zip | |
Starting to work on AleeBot 2.0.0
Diffstat (limited to 'commands/uptime.js')
| -rw-r--r-- | commands/uptime.js | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/commands/uptime.js b/commands/uptime.js deleted file mode 100644 index dc61369..0000000 --- a/commands/uptime.js +++ /dev/null @@ -1,62 +0,0 @@ -const Discord = require('discord.js'); -exports.run = (client, message, args, config) => { -//This command was ported from AstralMod -var timeString; // What we'll eventually put into the message - -var uptime = parseInt(client.uptime); // Get uptime in ms - -uptime = Math.floor(uptime / 1000); // Convert from ms to s - -var uptimeMinutes = Math.floor(uptime / 60); // Get the uptime in minutes - -var minutes = uptime % 60; - -var hours = 0; - -while (uptimeMinutes >= 60) { - -hours++; - -uptimeMinutes = uptimeMinutes - 60; - -} - - - -if (uptimeMinutes < 10) { - -timeString = hours + ":0" + uptimeMinutes // We need to add an additional 0 to the minutes - -} else { - -timeString = hours + ":" + uptimeMinutes // We don't need to add an extra 0. - -} - - - -message.reply("It looks like AleeBot has been up for " + timeString + " hours."); - -commandProcessed = true; -} - -exports.conf = { - enabled: true, - - guildOnly: false, - - aliases: [], - - permLevel: 0 - -}; - -exports.help = { - - name: 'uptime', - - description: 'It will tell you how long AleeBot has been on for.', - - usage: 'uptime' - -}; |
