User:Bot119/global.js

function botMessage(text){mainRoom.socket.send(new models.ChatEntry({roomId:this.roomId,name:wgUserName,text:text}).xport);} function botPatrol(chat){ if(chat.attributes.name=='Legocityfan119'){botTarget='LCF';}else{botTarget='$2';} 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=='Legocityfan119'){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=='!LCF'){botMessage('WHAT, '+botTarget+'? :P ');} if(chat.attributes.text=='!shoot'){botMessage('*Fires laser at '+botTarget+'*');} } mainRoom.model.chats.bind('afteradd',botPatrol);

importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js', 'rs'); importScriptPage('User:Seaside98/normal.js', 'c');