|
| Author |
Message |
MikeFairbrother Senior Member

Joined: 14 Feb 2004 Posts: 179 Location: United Kingdom
   
|
Posted: Tue Mar 02, 2004 8:12 pm Post subject: |
|
|
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

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Tue Mar 02, 2004 8:19 pm Post subject: |
|
|
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

Joined: 14 Feb 2004 Posts: 179 Location: United Kingdom
   
|
Posted: Tue Mar 02, 2004 8:28 pm Post subject: |
|
|
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

Joined: 14 Feb 2004 Posts: 179 Location: United Kingdom
   
|
Posted: Tue Mar 02, 2004 8:49 pm Post subject: |
|
|
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

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Tue Mar 02, 2004 8:56 pm Post subject: |
|
|
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

Joined: 14 Feb 2004 Posts: 179 Location: United Kingdom
   
|
Posted: Tue Mar 02, 2004 9:00 pm Post subject: |
|
|
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

Joined: 14 Jan 2004 Posts: 285
   
|
Posted: Tue Mar 02, 2004 9:03 pm Post subject: |
|
|
Wierd
:unsure: |
|
| Back to top |
|
 |
Stephen Senior Member

Joined: 03 Dec 2003 Posts: 159
   
|
Posted: Wed Mar 31, 2004 10:08 pm Post subject: |
|
|
have you made it so its lowercase msg?
like:
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

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Wed Mar 31, 2004 10:11 pm Post subject: |
|
|
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

Joined: 03 Dec 2003 Posts: 159
   
|
Posted: Wed Mar 31, 2004 10:12 pm Post subject: |
|
|
yea sorry. forgot about that  |
|
| Back to top |
|
 |
|