aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-12 15:21:02 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-12 15:21:02 +0800
commitf1eb200c8367a62ee215fd2e4aa2e8d739aa744a (patch)
tree89a510ec344f5666f743ab65dd83243f974a5d15 /utils
parente395faaf3db958bcab87d91936a5585ad9a572c3 (diff)
downloadSoopyV2-f1eb200c8367a62ee215fd2e4aa2e8d739aa744a.tar.gz
SoopyV2-f1eb200c8367a62ee215fd2e4aa2e8d739aa744a.tar.bz2
SoopyV2-f1eb200c8367a62ee215fd2e4aa2e8d739aa744a.zip
Added guild event thing for sbg
Diffstat (limited to 'utils')
-rw-r--r--utils/numberUtils.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/numberUtils.js b/utils/numberUtils.js
index 63240de..1258d90 100644
--- a/utils/numberUtils.js
+++ b/utils/numberUtils.js
@@ -75,5 +75,12 @@ module.exports = {
}
return interval + '' + intervalType;
+ },
+ timeNumber: function(time){
+ let mins = Math.floor(time/1000/60)
+ let secs = Math.floor(time/1000)%60
+
+ if(mins === 0) return secs + "s"
+ return `${mins}m ${secs}s`
}
} \ No newline at end of file