diff options
| author | Alee14 <alee14498@gmail.com> | 2018-01-26 17:38:08 -0500 |
|---|---|---|
| committer | Alee14 <alee14498@gmail.com> | 2018-01-26 17:38:08 -0500 |
| commit | 4083aacf8c5b9cd3204faa3c788190c730e346f5 (patch) | |
| tree | 1b49637d4e832188c82f4fb674bd4ebaf373fd6c /src/commands/uptime.js | |
| parent | 533bf07438478a93c498ef831f99c3c1ab93eb2f (diff) | |
| download | AleeBot-4083aacf8c5b9cd3204faa3c788190c730e346f5.tar.gz AleeBot-4083aacf8c5b9cd3204faa3c788190c730e346f5.tar.bz2 AleeBot-4083aacf8c5b9cd3204faa3c788190c730e346f5.zip | |
Added run.bat to gitignore
Diffstat (limited to 'src/commands/uptime.js')
| -rw-r--r-- | src/commands/uptime.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/commands/uptime.js b/src/commands/uptime.js index 737a386..99f9f50 100644 --- a/src/commands/uptime.js +++ b/src/commands/uptime.js @@ -1,19 +1,19 @@ -module.exports.run = async (client, message, args) => { - - var uptime = parseInt(client.uptime); - uptime = Math.floor(uptime / 1000); - var uptimeMinutes = Math.floor(uptime / 60); - var minutes = uptime % 60; - var hours = 0; - while (uptimeMinutes >= 60) { - hours++; - uptimeMinutes = uptimeMinutes - 60; - } - var uptimeSeconds = minutes % 60; - message.channel.send(":clock3: AleeBot has been up for " + hours + " hours, " + uptimeMinutes + " minutes, and " + uptimeSeconds + " seconds.") - -} - -module.exports.config = { - command: "uptime" +module.exports.run = async (client, message, args) => {
+
+ var uptime = parseInt(client.uptime);
+ uptime = Math.floor(uptime / 1000);
+ var uptimeMinutes = Math.floor(uptime / 60);
+ var minutes = uptime % 60;
+ var hours = 0;
+ while (uptimeMinutes >= 60) {
+ hours++;
+ uptimeMinutes = uptimeMinutes - 60;
+ }
+ var uptimeSeconds = minutes % 60;
+ message.channel.send(":clock3: AleeBot has been up for " + hours + " hours, " + uptimeMinutes + " minutes, and " + uptimeSeconds + " seconds.")
+
+}
+
+module.exports.config = {
+ command: "uptime"
}
\ No newline at end of file |
