User:Dark Lord/chat.js

/* class=gwtchat.server.JavascriptBot */ /* Greeting for a new user: */ function greet(chatter) { chat.say(   random(["Hello","Welcome"])+", "+chatter.name+"!"+    "."); } /* Utility function for getting a random string: */ function random(strings) { return strings[Math.floor(Math.random*strings.length)]; } /* Reply: */ function hear(chatter, message) { if (/T3CH/.exec(message)) chat.say("T3CHNOCIDE is currently AFK and unable to assist users. Please contact a moderator for help.");