User Control Panel
Advertisements

HELP US, HELP YOU!

Block need help...

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Wed Mar 03, 2004 3:42 am    Post subject: Reply with quote

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... Sad thanks Very Happy
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Wed Mar 03, 2004 3:50 am    Post subject: Reply with quote

try changing
Quote:
$msn->send( "REM", "AL $1" );
$msn->send( "ADC", "BL N=$1" );

in the block one to
Code:
$msn->block($1);

and in the unblock one
Quote:
msn->send( "REM", "BL $1" );
$msn->send( "ADC", "AL N=$1" );

to
Code:
$msn->unblock($1);
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Wed Mar 03, 2004 3:57 am    Post subject: Reply with quote

Thanks but it does not work... :S
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Wed Mar 03, 2004 4:08 am    Post subject: Reply with quote

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 Wink .
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Wed Mar 03, 2004 4:12 am    Post subject: Reply with quote

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
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Wed Mar 03, 2004 4:15 am    Post subject: Reply with quote

Hey it happened to me to!!!

Thats why I switched to andromeda!

Try it the block command works Smile

So does the unblock Smile

Ive used most of the bots on this site and found andromeda is the best.

The others are heeps cool though Smile
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Wed Mar 03, 2004 4:27 am    Post subject: Reply with quote

i know andromeda really nice but it does not work on my pc.... ill try to make it work... Razz
Back to top
GiL
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 344

Reputation: 35.3Reputation: 35.3Reputation: 35.3Reputation: 35.3

PostPosted: Wed Mar 03, 2004 7:25 am    Post subject: Reply with quote

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 Smile
Back to top
BraveHeart
Senior Member
Senior Member


Joined: 14 Jan 2004
Posts: 285

Reputation: 33.8Reputation: 33.8Reputation: 33.8

PostPosted: Wed Mar 03, 2004 8:05 am    Post subject: Reply with quote

Andromeda is the best

Very Happy
Back to top
GiL
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 344

Reputation: 35.3Reputation: 35.3Reputation: 35.3Reputation: 35.3

PostPosted: Wed Mar 03, 2004 8:26 am    Post subject: Reply with quote

I rest my case.... *Someone in the distance says: Hey! It's my job to say that!!*
Back to top
Juzz
Senior Member
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Wed Mar 03, 2004 10:02 am    Post subject: Reply with quote

Weve almost fully changed the subject to Andromeda

btw Andromeda rules
Back to top
Urbansk8
Newbie
Newbie


Joined: 07 Mar 2004
Posts: 10
Location: UK
Reputation: 26.6Reputation: 26.6Reputation: 26.6

PostPosted: Mon Mar 08, 2004 5:44 pm    Post subject: Reply with quote

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
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Mon Mar 08, 2004 5:51 pm    Post subject: Reply with quote

to run andromeda *lazy* need the writers in x:\perl\XML
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help 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