the brackets are wrong
you misplaced the closing bracket on the first statement, i fixed it up a bit.
if it's only one line in the if statement, you can do without brackets.
i personally think else if is better in this case.
"if it isn't the last case, is it this?" is basically what it does
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%msg $= "Testing")
commandToServer('messageSent',"This was a triumph!");
else if(%msg $= "Hi")
commandToServer('messageSent',"Mimic: Yo.");
}
};
activatePackage(chatbot);