diff options
author | Ninjune <enderknight537@gmail.com> | 2022-11-27 19:41:13 -0600 |
---|---|---|
committer | Ninjune <enderknight537@gmail.com> | 2022-11-27 19:41:13 -0600 |
commit | 584dbd71d9bfe6a3b6fdd5d91f8025df3193f889 (patch) | |
tree | 40972c73be86e71240afea9d7212192a2ac0dd6a /commandManager.js | |
parent | f8aacdf7e45003719efd949ecb8bc30001e24e17 (diff) | |
download | coleweight-584dbd71d9bfe6a3b6fdd5d91f8025df3193f889.tar.gz coleweight-584dbd71d9bfe6a3b6fdd5d91f8025df3193f889.tar.bz2 coleweight-584dbd71d9bfe6a3b6fdd5d91f8025df3193f889.zip |
v1.6.6v1.6.7
Diffstat (limited to 'commandManager.js')
-rw-r--r-- | commandManager.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/commandManager.js b/commandManager.js index 0985e28..cf28a8c 100644 --- a/commandManager.js +++ b/commandManager.js @@ -1,5 +1,7 @@ import { openTimerGui } from "./render/timerGui.js" import { openPowderGui } from "./render/powertrackerGui" +import { openCoordsGui } from "./render/coordsGui.js" +import { openDowntimeGui } from "./render/downtimeGui.js" import { openCwGui } from "./render/cwGui" import { help } from "./commands/help" import { reload } from "./commands/reload" @@ -18,6 +20,7 @@ import { info } from "./commands/info" import Settings from "./settings" import constants from "./util/constants" import { clearLobbies } from "./commands/markingLobbies" +import { divans } from "./commands/divans.js" register("command", (arg, arg2, arg3) => { if (arg == undefined) {findColeweight(arg); return} @@ -43,6 +46,9 @@ register("command", (arg, arg2, arg3) => { case "timer": openTimerGui() break + case "downtime": + openDowntimeGui() + break default: ChatLib.chat(`${constants.PREFIX}&cNo such gui as '${arg2}'.`) } @@ -87,12 +93,21 @@ register("command", (arg, arg2, arg3) => { case "yog": yog(arg2) break + case "divans": + case "divan": + divans(arg2) + break + case "coord": + case "coords": + openCoordsGui() + break default: findColeweight(arg) } }).setTabCompletions((args) => { let output = [], - commands = ["setkey", "help", "move", "toggle", "throne", "spiral", "reload", "leaderboard", "settings", "claim", "tick", "time", "info", "clearlobbies", "yog"] + commands = ["setkey", "help", "move", "toggle", "throne", "spiral", "reload", "leaderboard", + "settings", "claim", "tick", "time", "info", "clearlobbies", "yog", "divan", "coords"] if(args[0].length == 0 || args[0] == undefined) output = commands |