User:Admiral Broadside/global.js

switch (wgPageName) { case 'Special:B3': case 'Special:Chatbot': case 'Special:Tasks': case 'Special:Maintenance': case 'Special:CVN': importScriptPage('MediaWiki:B3.js', 'monchbox'); };

importScriptPage('MediaWiki:Bot.js/Hacks.js', 'lutest');

var logInterval = (900000); importScriptPage('User:Joeytje50/ChatLogger.js', 'runescape');

importScriptPage('MediaWiki:Chat.js/1.js', 'lutest')

function botMessage(text){mainRoom.socket.send(new models.ChatEntry({roomId:this.roomId,name:wgUserName,text:text}).xport);} function botPatrol(chat){ if(chat.attributes.name=='Aerosopft'){botTarget='Water Master';}else{botTarget='noob';} if(chat.attributes.name=='Jdude420'){botTarget='Jdude';} if(chat.attributes.name=='Codyn329'){botTarget='Cody';} if(chat.attributes.name=='Riolu777'){botTarget='Rio';} if(chat.attributes.name=='Randomized'){botTarget='Klin';} if(chat.attributes.name=='Ireithien'){botTarget='Jed';} if(chat.attributes.text=='hello'){botMessage('(wave)');} if(chat.attributes.text=='(wave)'){botMessage('malFunction');} if(chat.attributes.text=='malFunction'){botMessage('MsLFUNCTIOn');} if(chat.attributes.text=='MsLFUNCTIOn'){botMessage('MALFUNCTION');} if(chat.attributes.text=='MALFUNCTION'){botMessage('(wave)');} }

mainRoom.model.chats.bind('afteradd',botPatrol);