Taking it one step further, making it work on a per contact basis...
js code:
var oContacts = {};
function OnEvent_ChatWndReceiveMessage(ChatWnd, Message, Origin, MsgKind)
{
if (Message === "-comandtest" && (oContacts[Origin].AllowCmd || typeof oContacts[Origin] === 'undefined'))
{
ChatWnd.SendMessage("Command successful!"); // or whatever you want to send
oContacts[Origin].AllowCmd = false;
MsgPlus.AddTimer(Origin, 10000)
}
}
function OnEvent_Timer(TimerId)
{
oContacts[TimerId].AllowCmd = true;
}