This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Universal channel script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

Hi demond: i hope you've read my input for "bad words" stuff.. and here is
errorInfo

Code: Select all

<mm> .set errorInfo
<(TestBot> [23:09] #mm# set errorInfo
<(TestBot> Currently: can't read "maxr": no such variable
<(TestBot> Currently:     while executing
<(TestBot> Currently: "if {$n >= $maxr} {
<(TestBot> Currently: 			if {[unixtime] - $ts <= $maxt} {
<(TestBot> Currently: 				#set buf "mode $chan +mi\n"
<(TestBot> Currently: 				#putdccraw 0 [llength $buf] $buf
<(TestBot> Currently: 				putquick "mode $chan +..."
<(TestBot> Currently:     (procedure "::xchannel::mass" line 10)
<(TestBot> Currently:     invoked from within
<(TestBot> Currently: "::xchannel::mass $_p1 $_p2 $_p3 $_p4 $_p5"
thanks
MM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what's your x:mass:rate for that channel?

I could add dcc command for adding bad word(s), but I didn't deem that necessary since those are relatively constant, and typically you would only infrequently want to add/remove from bad word list(s), i.e. by editing bad word file(s) (of course, you can have different bad word file for each channel)
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

what's your x:mass:rate for that channel?

x:mass setting is off.

x:mass:duration: 0
x:mass:rate: {}

oh also should we add badwords in this format? when i use .chanset to add the file, it added successfully but i don't see in the bot directory so i can add the words.
"badword"
"*badword*"
" badword "

i created manually the file "badwords.txt "and added few words and i get this error
Tcl error [::xchannel::bad]: couldn't compile regular expression pattern: quantifier operand invalid

thanks
MM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

read the script's header ;) pay attention to the format of x:mass:rate and interpretation of bad words

you have to create your badwords file(s) using some text editor (don't enclose words in quotes)
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

Thanks demond, that x:mass error is all set, after setting the mass rate for that channel and bad word is fine too but let say if i add "d*ck" to the list and some one says oh mr. v.president d*ck chinny in this case it shouldn't trigger..


thanks
MM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you probably didn't pay attention to the NOTE in script's header

your bad words are REs (regular expressions); that means if you really want to match an expression and not a single word, you must use RE syntax; if you just to want to match plain words, anywhere in the text said on channel, you simply specify those words, without enclosing them in quotes or adding '*'; the words can be separated by any white space (space, tab, new line, etc.)
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

Thank you very much.
your bad words are REs (regular expressions); that means if you really want to match an expression and not a single word, you must use RE syntax; if you just to want to match plain words, anywhere in the text said on channel, you simply specify those words, without enclosing them in quotes or adding '*'; the words can be separated by any white space (space, tab, new line, etc.)
could you pls give me few examples, because i am a bit confuse, i like it to trigger on certain words, anywhere in the lines like f*ck, etc . but like in my previous example Mr V.president case i don't want it to trigger since that's a name..

sorry for being pain...

thanks
MM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

but you can't distinguish between dick in a phrase that should be censored and Dick in a phrase that contains Dick Chaney, neither with RE syntax, nor with Tcl's special string matching characters like '*' and '?', since the matching is case-insensitive anyway

for RE syntax, have a look here
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

Thank you demond.
MM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

version 2.0 has been released

fixed minor bugs, enhanced [punish], added clone scanner; more to come
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

3.0 is out

added revolving door and bad /whois (realname, channels (including too many), server) handlers; a little more to come
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

that's it folks, I'm done with xchannel; it has everything I deemed necessary for most people, and it should make all other protection scripts obsolete :lol: j/k, time will show, but I think I achieved my objective - highly-optimized and versatile code with 100% chanset-based configuration that should appeal to the majority of bot owners

there will be no next version unless people report bugs

the last is version 3.2, I've added drone detection (based on improved spambuster heuristics) and done some final [punish] changes
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

I just downloaded the script and nicely done!!

I just have one problem : when I restart the bot I'm always getting this error : (22:54) <Cube> [22:54] xchannel-3.2: ERROR: no channels defined .

After a rehash everything works fine again.

I'm getting this after every .restart .

Grtz
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

that happens because on (re)start eggdrop actually loads chanfile after loading its config (and any scripts sourced in it), so at that point xchannel doesn't know about any channels

I'll find a way around this
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

alrighty, fixed the restart thing in 3.3
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply