User:Hawkbot/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'); 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=='Roadhawk'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='652Graystripe'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Randomized'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='~Chief~'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='UniversalGalaxies'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Diamonddragon88'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Deputron'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Hurricane75'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Asmodeous Paradoxicus Z'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='PuppyGirl1244'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Icefern'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.name=='Stormclaw of RiverClan'){botTarget='Moderator';}else{botTarget='person';} if(chat.attributes.text=='!speak'){botMessage('I have spoken at command, '+botTarget+'.');} if(chat.attributes.text=='!die'){botMessage(botTarget+', we must not resort to-');if(chat.attributes.name=='Roadhawk'){botMessage('*explodes*');setTimeout(function{window.open(window.location,'_self').close;},1000);}else{botMessage('EXPLOSION PREVENTED - COMMAND NOT AUTHORIZED');}} if(chat.attributes.text=='!dance'){botMessage('(dance) Look at me go, '+botTarget+'!');} if(chat.attributes.text=='!disconnect'){botMessage(botTarget+', Disconnecting');if(chat.attributes.name=='Moderator'){botMessage('Disconnecting');}else{botMessage('Command Unauthorized');}} if(chat.attributes.text=='!tennis'){botMessage('Really? Tennis, '+botTarget+'? lulz');} if(chat.attributes.text=='!shoot'){botMessage('*Fires lazer at '+botTarget+'*');} if(chat.attributes.text=='!test'){botMessage('Passed');} if(chat.attributes.text=='!klint'){botMessage('Exterminate!');} if(chat.attributes.text=='!shutup'){botMessage('You\'re not my mom.');} if(chat.attributes.text=='!youreugly'){botMessage('Like ur mom.');} if(chat.attributes.text=='!smile'){botMessage(':)');} if(chat.attributes.text=='!Parrots'){botMessage('DIEEEEEEEEEEEEEEEEEEEEEEE');} if(chat.attributes.text=='!updatelogs'){botMessage(botTarget+', Logs Updated');if(chat.attributes.name=='Moderator'){botMessage(' Updated');}else{botMessage('Command Unauthorized');}} if(chat.attributes.text=='!frown'){botMessage(':(');} if(chat.attributes.text=='!pupdate'){botMessage('ヽ༼ຈل͜ຈ༽ﾉ PUPDATE or RIOTヽ༼ຈل͜ຈ༽ﾉ');} if(chat.attributes.text=='!magikarp'){botMessage('(Magikarp) is life. Magikarp is love.');} if(chat.attributes.text=='!Wumbo'){botMessage('I got my majors in that. (TROLL)');} if(chat.attributes.text=='!logs'){botMessage(', '+botTarget+'.');} } mainRoom.model.chats.bind('afteradd',botPatrol);