js code:
function OnGetScriptCommands()
{
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>command</Name>";
ScriptCommands += "<Description>DISCRIPTION</Description>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
Think about, that the command[name] have to be the same with
js code:
if (Message.toLowerCase() == "/command"){
return "BLAH";
}
That's how i do it.