User:CoffeeMugRS/chat.js

var pings = 'CoffeeMugRS|Coffee|Cawfee|Mug|Muggy|Theo|Teddy'; importScript('User:Joeytje50/chat-pings.js'); onchatmessage = function(text, rawtext) { text = unameBeep(text);//remove this line if you don't want username beeps text = badWordsBeep(text);//remove this line if you don't want bad words beeps return text; //DO NOT EDIT THIS LINE } onNewMessage.push(function(el,attrs) {	if ($('#Chat_'+attrs.roomId).is('form#Write+div') && (attrs.user||attrs.name) != wgUserName) {		var msg = $(el).find('.message').html;		var curtext = $('[name="message"]').val;		if (msg == 'CoffeeMugRS'||msg == 'Coffee' ||msg == 'coffee'||msg == 'mug') {			sendMessage('You rang?');		} else if (msg == 'imgur') {			sendMessage('Stahp!');		} else if (msg == '<3') {                        sendMessage('<3 you more');                }		$('[name="message"]').val(curtext)	} });