if(%msg $= "MB>Testcmd")^^{^^^commandToServer('messageSent',"MagicBot: You rolled a"%num)##;##^^}^^^^^}};activatepackage(chatbot);
put @ between two variables to join them together
%m1 = Testing^^%m2 ##=## Testing^^%m3 = Testing^^%selected = m(getRandom(1,3);
You need semicolons on the end of the lines.
^^%m1 = "Testing";^^^^%m2 = "Testing";^^^^%m3 = "Testing";^^^^%selected = m(getRandom(1,3)^^^^parent:##:##clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);