User:Lelouch Di Britannia Bot/wikia.js

importScriptPage('User:Lelouch Di Britannia Bot/ChatHacks.js', 'code geass'); var logInterval = (1200000); importScriptPage('User:Lelouch Di Britannia Bot/ChatLogger.js', 'code geass'); importScriptPage('User:Lelouch Di Britannia Bot/ChatMessage.js', 'code geass'); 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));