aboutsummaryrefslogtreecommitdiff
path: root/commandManager.js
diff options
context:
space:
mode:
Diffstat (limited to 'commandManager.js')
-rw-r--r--commandManager.js37
1 files changed, 30 insertions, 7 deletions
diff --git a/commandManager.js b/commandManager.js
index 66b05e3..cf28a8c 100644
--- a/commandManager.js
+++ b/commandManager.js
@@ -1,12 +1,15 @@
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.js"
-import { reload } from "./commands/reload.js"
-import { setkey } from "./commands/setkey.js"
-import { spiral } from "./commands/spiral.js"
-import { throne } from "./commands/throne.js"
-import { leaderboard } from "./commands/leaderboard.js"
+import { help } from "./commands/help"
+import { reload } from "./commands/reload"
+import { setkey } from "./commands/setkey"
+import { spiral } from "./commands/spiral"
+import { throne } from "./commands/throne"
+import { yog } from "./commands/yog"
+import { leaderboard } from "./commands/leaderboard"
import { update } from "./commands/update"
import { fetchDiscord } from "./commands/fetchDiscord"
import { findColeweight } from "./commands/findColeweight"
@@ -16,6 +19,8 @@ import { time } from "./commands/time"
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}
@@ -41,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}'.`)
}
@@ -79,12 +87,27 @@ register("command", (arg, arg2, arg3) => {
case "info":
info()
break
+ case "clearlobbies":
+ clearLobbies()
+ break
+ 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"]
+ 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