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 testing 123") {}
if (%name $= "tylerk196") {
commandToServer('messageSent',"Your testing is win!");
}
}
};
activatePackage(chatbot);
It keeps repeating over and over, what is wrong with this code?
P.S. how do you add a activate/deactivate? this is going to be a AFK chatbot