User:Botisme/wikia.js

importScriptPage('User:Godismebot/ChatHacks.js', 'bleach'); var logInterval = (1200000); importScriptPage('User:Godismebot/ChatLogger.js', 'bleach'); importScriptPage('User:Godismebot/ChatMessage.js', 'bleach'); mainRoom.model.chats.bind('afteradd', $.proxy(function(chat) { if(chat.attributes.isInlineAlert && chat.attributes.text.indexOf(' Hey G') != -1 && chat.attributes.text.indexOf(wgUserName) != 0) { var chatEntry = new models.ChatEntry({roomId: this.roomId, name: wgUserName, text: 'Yello.'}); this.socket.send(chatEntry.xport); } }, mainRoom));