Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
fixed some things
Browse files Browse the repository at this point in the history
  • Loading branch information
sr229 committed Oct 5, 2016
1 parent d708f37 commit 5ea7c6e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ install:
- npm install -g babel-cli
- npm install -g babel-preset-es2015
script :
- babel src -D -d out
- babel src --no-comments --minified -D -d out
12 changes: 6 additions & 6 deletions src/commands/uptime/uptime.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ exports.commands = [

//a bunch of logic floors
function calcUptime() {
const time = 0;
const days = 0;
const hrs = 0;
const min = 0;
const sec = 0;
const temp = Math.floor(bot.uptime / 1000);
var time = 0;
var days = 0;
var hrs = 0;
var min = 0;
var sec = 0;
var temp = Math.floor(bot.uptime / 1000);
sec = temp % 60;
temp = Math.floor(temp/ 60);
min = temp % 60;
Expand Down

0 comments on commit 5ea7c6e

Please sign in to comment.