aboutsummaryrefslogtreecommitdiff
path: root/commands/markingLobbies.js
blob: 6db976e37c2c03f74947e98d9e7e25f739775dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)