User Control Panel
Advertisements

HELP US, HELP YOU!

swearing = blocked

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
MikeFairbrother
Senior Member
Senior Member


Joined: 14 Feb 2004
Posts: 179
Location: United Kingdom
Reputation: 27.9Reputation: 27.9Reputation: 27.9

PostPosted: Tue Mar 02, 2004 8:12 pm    Post subject: Reply with quote

Ive tried all the blocking systems on the forum but cant seem to get any to work?

does anyone suggest anything

thank you

_________________
Regards,
Mike
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Tue Mar 02, 2004 8:19 pm    Post subject: Reply with quote

Yea try telling use what you tried, and what didn't work about it. You kinda leave a lot of latitude when you say you tried them all and none of them worked. I would bet if you tried several, that everyone else can get to work, and you couldn't, then it would be a fair assumption to say that you failed at implementing them. Realy we can't read minds, let us know what bot you are using and what youve tried, and why you think they have failed.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
MikeFairbrother
Senior Member
Senior Member


Joined: 14 Feb 2004
Posts: 179
Location: United Kingdom
Reputation: 27.9Reputation: 27.9Reputation: 27.9

PostPosted: Tue Mar 02, 2004 8:28 pm    Post subject: Reply with quote

i apologise sorry

one i have tried is one i think Gil did but cant find it again

also another one is:
This one

i got some public to swear, and it just didnt do anything

_________________
Regards,
Mike
Back to top
MikeFairbrother
Senior Member
Senior Member


Joined: 14 Feb 2004
Posts: 179
Location: United Kingdom
Reputation: 27.9Reputation: 27.9Reputation: 27.9

PostPosted: Tue Mar 02, 2004 8:49 pm    Post subject: Reply with quote

i edited my trigger file to:

Code:
<br /><br />package brains::Trigger;<br /><br />use strict;<br />use warnings;<br /><br />use Trigger;<br /><br />my $owner = 'mikefairbrother@msn.com';<br /><br />my $trigger = undef;<br /><br />sub process <br />{<br />  my ($bot, $self, $user, $msg) = @_;<br />  <br />  unless (defined $trigger) {<br />$trigger = new Trigger();<br />      $bot->{settings}->{trigger} = $trigger;<br />  }<br /><br />  $msg =~ s/[\n\*lazy*]//igs;<br />  if ($msg =~ /*rude*|motherfucker|cunt|fucker|asshole|dick|dickface|bitch|biatch|suck|sucks|gay/i)<br />  {<br />    $bot->{msn}->call($owner,"$user Was Swearing Word: $msg");<br />    $self->invite($owner);<br />    return "[ Swearing Alert For $user ] Calling Owner! You Will Get A Warning!";<br />  } else { <br />     my $reply = $trigger->processMessage( $user, $msg ); <br />     return $reply if length $reply; <br />  }<br />  return undef;<br />}<br /><br />sub description { 'Trigger Brain.' }<br /><br />1;<br /><br />


and when someone swears, nothing happens

(Excuse The Language)

_________________
Regards,
Mike
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Tue Mar 02, 2004 8:56 pm    Post subject: Reply with quote

Nothing? no reply and nothing in the dos window? Have you set trigger as your brain?
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
MikeFairbrother
Senior Member
Senior Member


Joined: 14 Feb 2004
Posts: 179
Location: United Kingdom
Reputation: 27.9Reputation: 27.9Reputation: 27.9

PostPosted: Tue Mar 02, 2004 9:00 pm    Post subject: Reply with quote

yes ive set trigger as my brain...im looking at it at the moment, but dont know what it is....when someone says F*ck, in the dos screen it does nothing
_________________
Regards,
Mike
Back to top
BraveHeart
Senior Member
Senior Member


Joined: 14 Jan 2004
Posts: 285

Reputation: 33.8Reputation: 33.8Reputation: 33.8

PostPosted: Tue Mar 02, 2004 9:03 pm    Post subject: Reply with quote

Wierd

:unsure:
Back to top
Stephen
Senior Member
Senior Member


Joined: 03 Dec 2003
Posts: 159

Reputation: 32.8Reputation: 32.8Reputation: 32.8

PostPosted: Wed Mar 31, 2004 10:08 pm    Post subject: Reply with quote

have you made it so its lowercase msg?

like:
Code:
$msg = lc($msg);

just before

Code:
 if ($msg =~ /*rude*|motherfucker|cunt|fucker|asshole|dick|dickface|bitch|biatch|suck|sucks|gay/i)<br /> {
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Wed Mar 31, 2004 10:11 pm    Post subject: Reply with quote

The /i on the end of the regex means it will ignore the case of the letters.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Stephen
Senior Member
Senior Member


Joined: 03 Dec 2003
Posts: 159

Reputation: 32.8Reputation: 32.8Reputation: 32.8

PostPosted: Wed Mar 31, 2004 10:12 pm    Post subject: Reply with quote

yea sorry. forgot about that Smile
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