Hello, I just started learning Chatbots, Could someone please help me. I repeat the phrase to trigger it, But It wont say anything! Here is the code.
//Captor
//6023
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (%msg $= "testing testing 123")
{
if(%name $= "Captor")
{
commandToServer('messageSent',"Your testing is win, Captor!");
}
}
}
};
ActivatePackage(chatbot);