I'm trying to make a chatbot but for some reason this won't work if I chat "test" without quotes
code:
package Robotron
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
Parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
echo(%msg);
if (%msg $= "test")
{
commandToServer('messageSent',"Robotron: Hello World.");
}
}
};
activatePackage(Robotron);
what did I do wrong?