User Control Panel
Advertisements

HELP US, HELP YOU!

Commands Help

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
Max
Member
Member


Joined: 03 Dec 2003
Posts: 129

Reputation: 32.1Reputation: 32.1Reputation: 32.1

PostPosted: Sun Dec 28, 2003 12:56 pm    Post subject: Reply with quote

I have added this to my bot.pl but none of the commands seem to work. Do i have to add them somewere else? or have i messed up something?

Code:
#Commands<br />if ($msg =~ /(^\\leave|fuck_off)/i) {<br />&send($self,"$username Has Requested For Me To leave :( Byeee", "$username");<br />$self->sendraw("OUT\*lazy*\n");<br />return;<br /><br />}<br /><br />if ($msg =~ /(^\\time|Whats the time?)/i) {<br />&send($self,"GMT " . localtime(), "$username");<br />return;<br /><br />}<br /><br />if ($msg =~ /^\\invite (.*)$/) {<br />&send($self,"Inviting $1.. please wait", "$username");<br />$self->send('CAL', "$1");<br />&send($self,"User invited Successfully", "$username");<br />return;<br /><br />}<br /><br />  if ($username =~ /$admin/) {<br /><br />  if ($msg =~ /^\\unblock (.*)/i) {<br />$msn->send( "REM", "BL $1" );<br />$msn->send( "ADD", "AL $1 $1" );<br /># user has been unblocked!<br />return;<br /><br />}<br />  <br />   if ($msg =~ /^\\name (.*)$/) {<br />   $self->set_name("$1");<br />   return;<br />   }<br />if ($msg =~ /^\\block (.*)/i) {<br />$msn->send( "REM", "AL $1" );<br />$msn->send( "ADD", "BL $1 $1" );<br /># user has been blocked<br />return;<br /><br />}<br /><br />if ($msg =~ /(^\\hardboot)/i) {<br />$msn->send('CHG', 'BRB');<br />&send($self,"Rebooting.", "$username");<br />$self->sendraw("OUT\*lazy*\n");<br />system "perl bot.pl";<br />return;<br /><br />}<br /><br />if ($msg =~ /(^\\reboot|reboot yourself|reload yourself|restart yourself|refresh yourself|enlighten your mind)/i) {<br />&loadReplies();<br />&send($self,"Reboot completed.", "$username");<br />return;<br /><br />}<br /><br />if ($msg =~ /(^\\offline)/i) {<br />&send($self,"seeya im off!", "$username");<br />exit(1);<br />return;<br /><br />}<br /><br />   }


Thanks
Max
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Sun Dec 28, 2003 4:40 pm    Post subject: Reply with quote

First tell us what MSN.pm you are using and what bot you are using.

Second tell use what "doesn't work" about it. Does it give you errors? Does it just not work? Where did you add it in your bot.pl?

Third, I beleive that ^ inside parenthesis means "not", instead of "beggining with" which is what means if it appears first.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group