After looking at the script, I ended up with no syntax errors and this:
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%cp,%name,%cs,%msg);
if (%msg $= "123")
{
if (%name $= "Game")
commandToServer('messageSent',"ScriptWorking");
}
}
};
activatePackage(chatbot);
But now "clientCmdChatMessage" won't work.