User:Godisme/wikia.js

importScriptPage('User:Godismebot/ChatHacks.js', 'bleach'); var logInterval = (1200000); importScriptPage('User:Godismebot/ChatLogger.js', 'bleach');

mainRoom.model.chats.bind('afteradd', $.proxy(function(chat) { if(chat.attributes.isInlineAlert && chat.attributes.text.indexOf(' has joined the chat.') != -1 && chat.attributes.text.indexOf(wgUserName) != 0) { var chatEntry = new models.ChatEntry({roomId: this.roomId, name: wgUserName, text: 'Hi '+chat.attributes.name+', welcome to the Bleach Wiki Chat! Please remember to follow our Bleach Wiki:Chat Policy when you are here. Also note that you need ten productive edits to articles to be in here otherwise you will be asked to leave.'}); this.socket.send(chatEntry.xport); } }, mainRoom));