A while back, I asked for help, and now I finally got it!
But now I need help with an error.
My chatbot doesn't even work anymore! :O
Here is the code:
package chatbot
{
function clientCmdChatMessage( %cl, %voice, %pitch, %line, %pre, %name, %suf, %msg )
{
parent::clientCmdChatMessage( %cl, %voice, %pitch, %line, %pre, %name, %suf, %msg );
%self = ( %name $= $Pref::Player::NetName );
switch$ ( %msg )
{
case "comedyBot":
if ( %self )
{
commandToServer( 'messageSent', "comedyBot: Yes?" );
}
case "afk":
if ( %self )
{
commandToServer( 'messageSent', "comedyBot: I'll see you when you get back!" );
}
case "brb":
if ( %self )
{
commandToServer( 'messageSent', "comedyBot: I'll see you when you get back!" );
}
case "Back":
if ( %self )
{
commandToServer( 'messageSent', "comedyBot: Welcome back!" );
}
}
}
}
};
activatePackage( "chatbot" );