Posted: Wed Aug 03, 2005 2:32 pm Post subject: MSN Bot Status - White Warrior
Hey, Im new to this place and have little experience with bots and their workings. I know very little, if none programming and came acorss this by an idea that worked by luck..
I have edited the "offline" script which comes with the bot and changed it so typing in "!busy" or "!brb" or "!phone" etc. its status will change. I do appologise if this has possibly been already posted - I havnt seen it for White Warrior...
Code:
# Made for the White Warrior Template
# Edited by TapperTom
if ($msg =~ /^!online/i)
{
$self->sendmsg("I am now online");
$self->set_status('NLN');
$self->sendraw("IN\r\n");
}
Use !online - This is to turn the Bot back online (Does not work when bot is offline obviously)
Code:
# Made for the White Warrior Template
# Edited by TapperTom
if ($msg =~ /^!away/i)
{
$self->sendmsg("I am now set as away");
$self->set_status('AWY');
$self->sendraw("OUT\r\n");
}
Use !away - This is to chande its status to away
Code:
# Made for the White Warrior Template
# Edited by TapperTom
if ($msg =~ /^!busy/i)
{
$self->sendmsg("I am now set as busy");
$self->set_status('BSY');
$self->sendraw("OUT\r\n");
}
Use !busy - This is to change its status to Busy
Code:
Made for the White Warrior Template
# Edited by TapperTom
if ($msg =~ /^!brb/i)
{
$self->sendmsg("I am now set as Be Right Back");
$self->set_status('BRB');
$self->sendraw("OUT\r\n");
}
Use !brb - This sets its status to Be Right Back
Code:
# Made for the White Warrior Template
# Edited by TapperTom
if ($msg =~ /^!phone/i)
{
$self->sendmsg("I am now set as On the phone");
$self->set_status('PHN');
$self->sendraw("OUT\r\n");
}
Use !phone - This sets its status as On the Phone
Code:
# Made for the White Warrior Template
# Edited by TapperTom
if ($msg =~ /^!lunch/i)
{
$self->sendmsg("I am now set as Out for lunch");
$self->set_status('LUN');
$self->sendraw("OUT\r\n");
}
Use !lunch - This sets its status as Out to Lunch
I set all these commands in my Admin folder so Users can mess around with it.. Thanks for reading, hope it helps.. Tom