How about you post your code that you tried to make and we can show you what you did wrong.
[rant]
When will people stop asking for stuff that is simple and start trying to read the scripting documentation? This is really simple to implement.
code:
function OnEvent_ChatWndMessageReceived(pChatWnd, sMessage, sOrigin){
if (sOrigin != Messenger.MyName) {
if (nMessage.charAt('word') != -1) {
pChatWnd.SendMessage('insert insult here');
}
}
}
[/rant]