aboutsummaryrefslogtreecommitdiff
path: root/commands/markingLobbies.js
diff options
context:
space:
mode:
authorNinjune x <enderknight537@gmail.com>2022-11-29 21:19:03 -0600
committerNinjune x <enderknight537@gmail.com>2022-11-29 21:19:03 -0600
commitad055ba90a3055db32f04ff5163ff4e1c85dfdfa (patch)
treeaee8962d031dffddd27fa702262a0ef7c66c08ce /commands/markingLobbies.js
parent00f4ecbc69216d4aee44bcdac92955c4eb774298 (diff)
downloadcoleweight-1.6.10.tar.gz
coleweight-1.6.10.tar.bz2
coleweight-1.6.10.zip
Diffstat (limited to 'commands/markingLobbies.js')
-rw-r--r--commands/markingLobbies.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/commands/markingLobbies.js b/commands/markingLobbies.js
new file mode 100644
index 0000000..6db976e
--- /dev/null
+++ b/commands/markingLobbies.js
@@ -0,0 +1,17 @@
+import settings from "../settings"
+import constants from "../util/constants"
+const PREFIX = constants.PREFIX
+let lobbies = []
+
+export function clearLobbies()
+{
+ lobbies = []
+}
+
+register('chat', (server) => {
+ if(!settings.lobbyMarking) return
+ if(lobbies.indexOf(server) > 0)
+ ChatLib.chat(`${PREFIX}&aYou've been in this lobby!`)
+ else
+ lobbies.push(server)
+}).setCriteria(/Sending to server ([A-Za-z0-9]+)\.\.\./g) \ No newline at end of file