diff options
author | Ninjune x <enderknight537@gmail.com> | 2022-11-17 16:56:06 -0600 |
---|---|---|
committer | Ninjune x <enderknight537@gmail.com> | 2022-11-17 16:56:06 -0600 |
commit | fb63481d2c5b7b468df6c5ebdee30178bc9155f5 (patch) | |
tree | 3ec467f8acb9594c7b5547426a3b640856dc7e37 /commands/time.js | |
parent | 9085ac77ce364572b14f132b64ead5cde2194607 (diff) | |
download | coleweight-1.6.1.tar.gz coleweight-1.6.1.tar.bz2 coleweight-1.6.1.zip |
1.6.0 Changelog in releasesv1.6.1
Diffstat (limited to 'commands/time.js')
-rw-r--r-- | commands/time.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/commands/time.js b/commands/time.js new file mode 100644 index 0000000..115964e --- /dev/null +++ b/commands/time.js @@ -0,0 +1,13 @@ +import constants from "../util/constants" +const PREFIX = constants.PREFIX + + +export function time() +{ + let timerHr = Math.floor(constants.timerdata.timer/60/60) + + if(timerHr >= 1) + ChatLib.chat(`${PREFIX}&aTimer (${constants.serverData.server}): &b${timerHr}h ${Math.floor(constants.timerdata.timer/60) - timerHr*60}m`) + else + ChatLib.chat(`${PREFIX}&aTimer (${constants.serverData.server}): &b${Math.floor(constants.timerdata.timer/60)}m ${Math.floor(constants.timerdata.timer%60)}s`) +}
\ No newline at end of file |