User:AndroidBot/global.js

importScriptPage('User:Roadhawk/global.js','c'); 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='Roadhawk';}else{botTarget='user';} if(chat.attributes.text=='!ios'){botMessage('iOs sucks. Android Rules!');} if(chat.attributes.text=='!updatelogs'){botMessage('I have updated logs.');} if(chat.attributes.text=='!windowsphone'){botMessage('Better than iOs, but android is still better');} if(chat.attributes.text=='!Hawkbot'){botMessage('Pshh. We're brothers. I have more gadgets than him.');} if(chat.attributes.text=='!ladylegs'){botMessage('It\'s Vishal, Not Rashad');} if(chat.attributes.text=='!test'){botMessage('Would you like the formal, or Informal response?');} if(chat.attributes.text=='formal'){botMessage('Testing Complete:: You may now resume action);} if(chat.attributes.text=='informal'){botMessage('Failed');} if(chat.attributes.text=='!hi'){botMessage('Hi There. I am AndroidBot, a bot run by roadhawk. Ask him any questions you have about me');} if(chat.attributes.text=='!speak'){botMessage('Hi.');}

if(chat.attributes.text=='!version'){botMessage('I am still in my beta stage. But Android 4.4 sounds good.');} } mainRoom.model.chats.bind('afteradd',botPatrol);