|
| Author |
Message |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Wed Mar 03, 2004 3:42 am Post subject: |
|
|
Hey i downloaded the new Morphious talk bot template and i see that the !block !unblock dont works.... can you tell me what's wrong with those codes...
Block
| Code: | | # Made By Morphious Enterprises<br /><br />if ($msg =~ /^block (.*)$/)<br />{<br />if (isAdmin($1) || isSmod($1) || isMod($1)) {<br />&send($self, "User is too important to block.");<br />return;<br />}else{<br />$msn->send( "REM", "AL $1" );<br />$msn->send( "ADC", "BL N=$1" );<br />}<br />&send($self, "$1 was blocked");<br />} |
Unblock
| Code: | | # Made By Morphious Enterprises<br /><br />if ($msg =~ /^unblock (.*)$/)<br />{<br />$msn->send( "REM", "BL $1" );<br />$msn->send( "ADC", "AL N=$1" );<br />&send($self, "$1 was unblocked");<br />} |
please help me because i got flooders and i can't block them... thanks  |
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
Posted: Wed Mar 03, 2004 3:50 am Post subject: |
|
|
try changing
| Quote: | $msn->send( "REM", "AL $1" ); $msn->send( "ADC", "BL N=$1" ); |
in the block one to
and in the unblock one
| Quote: | msn->send( "REM", "BL $1" ); $msn->send( "ADC", "AL N=$1" ); |
to
|
|
| Back to top |
|
 |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Wed Mar 03, 2004 3:57 am Post subject: |
|
|
| Thanks but it does not work... :S |
|
| Back to top |
|
 |
Rameses Senior Member

Joined: 02 Feb 2004 Posts: 182
   
|
Posted: Wed Mar 03, 2004 4:08 am Post subject: |
|
|
Jeanhub, instead of just saying "It does not work", try explaining what is going wrong, what the program says when you run it, what you think might be going wrong, and what you have tried to fix it.
It's much easier for us to help you when you provide that kind of information . |
|
| Back to top |
|
 |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Wed Mar 03, 2004 4:12 am Post subject: |
|
|
Ok so i get nothiing as answer from the bot... and in the perl... i dont seee any errors... :S
*n00b* |
|
| Back to top |
|
 |
Juzz Senior Member

Joined: 28 Feb 2004 Posts: 190 Location: NSw, australia.
   
|
Posted: Wed Mar 03, 2004 4:15 am Post subject: |
|
|
Hey it happened to me to!!!
Thats why I switched to andromeda!
Try it the block command works 
So does the unblock 
Ive used most of the bots on this site and found andromeda is the best.
The others are heeps cool though  |
|
| Back to top |
|
 |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Wed Mar 03, 2004 4:27 am Post subject: |
|
|
i know andromeda really nice but it does not work on my pc.... ill try to make it work...  |
|
| Back to top |
|
 |
GiL Not Yet a God

Joined: 06 Jan 2004 Posts: 344
    
|
Posted: Wed Mar 03, 2004 7:25 am Post subject: |
|
|
hmm well first, it probebly isnt working because $msn probly isnt the msn hash second, if $msn is the msn hash then the protocol might be breaking. but otherwise i dont know, my first asnwer would be to change to andromeda  |
|
| Back to top |
|
 |
BraveHeart Senior Member

Joined: 14 Jan 2004 Posts: 285
   
|
Posted: Wed Mar 03, 2004 8:05 am Post subject: |
|
|
Andromeda is the best
 |
|
| Back to top |
|
 |
GiL Not Yet a God

Joined: 06 Jan 2004 Posts: 344
    
|
Posted: Wed Mar 03, 2004 8:26 am Post subject: |
|
|
| I rest my case.... *Someone in the distance says: Hey! It's my job to say that!!* |
|
| Back to top |
|
 |
Juzz Senior Member

Joined: 28 Feb 2004 Posts: 190 Location: NSw, australia.
   
|
Posted: Wed Mar 03, 2004 10:02 am Post subject: |
|
|
Weve almost fully changed the subject to Andromeda
btw Andromeda rules |
|
| Back to top |
|
 |
Urbansk8 Newbie

Joined: 07 Mar 2004 Posts: 10 Location: UK
   
|
Posted: Mon Mar 08, 2004 5:44 pm Post subject: |
|
|
| Erm.. Andromeda is ok but im trying with MayaBot.. does anyone have the block command i could put in.. im a n00b so i dont no what im mena do.. |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Mon Mar 08, 2004 5:51 pm Post subject: |
|
|
| to run andromeda *lazy* need the writers in x:\perl\XML |
|
| Back to top |
|
 |
|