diff options
| author | Ninjune x <enderknight537@gmail.com> | 2022-11-29 21:19:03 -0600 |
|---|---|---|
| committer | Ninjune x <enderknight537@gmail.com> | 2022-11-29 21:19:03 -0600 |
| commit | ad055ba90a3055db32f04ff5163ff4e1c85dfdfa (patch) | |
| tree | aee8962d031dffddd27fa702262a0ef7c66c08ce /commands/markingLobbies.js | |
| parent | 00f4ecbc69216d4aee44bcdac92955c4eb774298 (diff) | |
| download | coleweight-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.js | 17 |
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 |
