I've heard that bots are spammy and they flood up the chat box, so this is why this topic is made.
package cmdbot
{
function nmh_type::send(%this)
{
%cmd = %this.getValue();
parent::send(%this);
if(strpos(%cmd,"-website") $= 0)
{
%web = getword(%cmd,1);
newchatso.addline("\c6Going to \c4"@%web);
gotowebpage(%web);
canvas.popdialog(newmessagehud);
}
}
};
activatepackage(cmdbot);
So what I have here is a code to make it so that if I say "-website blockland.us"
I'd go to there. Trouble is that I can't hide the message I put in, unless it
doesn't use something like %web. If it doesn't, then I'm fine, but there are
a lot of commands that I'd like to have that I wouldn't be able to put on it, such
as this one.
Help?