User:Holo Pearl/wikia.js

/** * Import scripts used for chat logging */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); var logInterval = 300000; importScriptPage('User:Joeytje50/ChatLogger.js', 'runescape'); var send = function (m) { mainRoom.socket.send(new models.ChatEntry({ roomId: this.roomId, name: mw.config.get('wgUserName'), text: m   }).xport); },   commands = function (chat) { if (chat.attributes.name !== mw.config.get('wgUserName')) { var t = chat.attributes.text, n = chat.attributes.name; switch (true) { case t === '!cake': send('Cake and grief counseling will be available at the conclusion of the test.'); break; case t === '!lemons': send('All right, I've been thinking, when life gives you lemons, don't make lemonade! Make life take the lemons back! Get mad! I don't want your lemons! What am I supposed to do with these? Demand to see life's manager! Make life rue the day it thought it could give Cave Johnson lemons! Do you know who I am? I'm the man whose gonna burn your house down - with the lemons! I'm gonna get my engineers to invent a combustible lemon that'll burn your house down!'); }    mainRoom.model.chats.bind('afteradd', commands);