code:function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){ if(Message.substring(0, 4)=="!do ") ChatWnd.SendMessage(Message.substring(4)); }