So I made a post a while ago about a server chatbot I was making.
So I go on today after not being on for a couple of months and suddenly it stopped working.
Whenever I type a command, nothing comes out.
There are no errors in the console, and the code is the same from the thread, which is
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%msg $= "MB>Index")
{
commandToServer('messageSent',"MagicBot: Commands, Rules, News");
}
if(%msg $= "MB>Commands")
{
commandToServer('messageSent',"MagicBot: MBAnno:restwords");
}
if(firstWord(%msg) $= "MBAnno:")
{
commandToServer('messageSent',"MagicBot: "@restWords(%msg));
}
}
};
activatepackage(chatbot);
But when I, say, type MB>Index, nothing happens.
No text, no nothing.
And as I said there are no errors in the console, so I really don't know what is happening.