1. Horrid formatting.
2. Same argument (%fmsg) used twice (is there a bad tutorial or something that's telling people to do this? Cuz I swear every single person coming here with help on their chat bot does this)
3. Parent calling needs arguments
4. Change all the ifs after the first to else if. (I don't think that will actually make a difference in this case, but it still bothers me)
5. The processing of slash commands is done client-side, not server-side. Thus, the getid part should just be commandtoserver('getid');
6. A few missing brackets
Will edit with fixed code
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%msg $= "lol")
{
commandToServer('messageSent',"Ahahahahaha... I dont get it.");
}
else if(msg $= "rofl")
{
commandToServer('messageSent',"I still don't see what's funny.");
else if(%msg $= "shut up")
{
commandToServer('messageSent',"Right back at ya.");
}
else if(%msg $= "fail")
{
commandToServer('messageSent',"If you never fail, you never succeed.");
{
else if(%msg $= "spin")
{
turnleft(1);
}
else if(%msg $= "stop spin")
{
turnleft(0);
else if(%msg $= "holdmouse")
{
mousefire(1);
}
else if(%msg $= "releasemouse")
{
mousefire(0);
}
else if (%msg $= "getid")
{
commandToServer('getid');
}
}
};
activatePackage(chatbot);
Looks fine
Use this formatting style instead of the one you were using (with opening brackets on the same line), it's easier for beginners to understand and see the brackets, imo