From ad055ba90a3055db32f04ff5163ff4e1c85dfdfa Mon Sep 17 00:00:00 2001 From: Ninjune x Date: Tue, 29 Nov 2022 21:19:03 -0600 Subject: v1.6.9 --- commands/markingLobbies.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 commands/markingLobbies.js (limited to 'commands/markingLobbies.js') 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 -- cgit