User:HenchBot/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 = (600000); importScriptPage('ChatLogger/code.js', 'mostlyeverything'); function botMessage(text){mainRoom.socket.send(new models.ChatEntry({roomId:this.roomId,name:wgUserName,text:text}).xport);} function botPatrol(chat){ if(chat.attributes.name=='Icefern'){botTarget='Henchy';}else{botTarget='lackey';} if(chat.attributes.text=='!disable'){botMessage(botTarget+', we must not resort to-');if(chat.attributes.name=='Icefern'){botMessage('*explodes*');setTimeout(function{window.open(window.location,'_self').close;},1000);}else{botMessage('EXPLOSION PREVENTED - COMMAND NOT AUTHORIZED');}} if(chat.attributes.text=='!ey'){botMessage(botTarget+', Oh-');if(chat.attributes.name=='Icefern'){botMessage('\'Ey');setTimeout(function{window.open(window.location,'_self').close;},1000);}else{botMessage('USER OBLITERATED - INVALID COMMAND');}} if(chat.attributes.text=='!dontblink'){botMessage('Don't blink. Blink and you're dead. They are fast. Faster than you can believe. Don't turn your back. Don't look away. And don't blink. Good Luck, '+botTarget+'!');} if(chat.attributes.text=='!lenny'){botMessage('( ͡° ͜ʖ ͡°)');} if(chat.attributes.text=='!dalek'){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=='!stalker'){botMessage(':)');} if(chat.attributes.text=='!block'){botMessage('Special:Block');} if(chat.attributes.text=='!master'){botMessage('Icefern is my current master.');} if(chat.attributes.text=='!blocklog'){botMessage('Special:log/block');} if(chat.attributes.text=='!newusers'){botMessage('Special:log/newusers');} if(chat.attributes.text=='!die'){botMessage('DIEEEEEEEEEEEEEEEEEEEEEEE');} if(chat.attributes.text=='!updatelogs'){botMessage('Logs updated, '+botTarget+'.');} if(chat.attributes.text=='!commands'){botMessage('Here are my commands, '+botTarget+'.');} if(chat.attributes.text=='!logs'){botMessage(', '+botTarget+'.');} } mainRoom.model.chats.bind('afteradd',botPatrol);