code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
var rand = Math.floor(Math.random()*1000);
if(Origin != Messenger.MyName) {
if(Message.substr(0,6) == "!guess" && Message.substr(8) == rand) { ChatWnd.SendMessage("Congrats.");
}
}
}
was too lazy so copied from MrT's code
it's like a Guess my number game
but if you want to set it on your own, just change "var rand"'s value