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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

kash2k wrote:I just have a query : Whenever I Rehash the bot I get an error saying "badword.txt" not found and "badwhois.txt".

Can you tell me if I need to get these files from somewhere? or what is the method to create them.
I am using this script for the first time
You manually *create the two text files yourself in the bots main folder.

* A nice feature would be the automatic creation (by the script) of those two files when first loaded.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

actually you don't need the files if you aren't going to use badword or/and whois protection; perhaps I should change the load error message to simple warning, as it's non-fatal, just informative

I'll code in something like .xfile <add|del|list> <bad|whois> [word|pattern]
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

demond wrote:I'll code in something like .xfile <add|del|list> <bad|whois> [word|pattern]
An excellent idea. :)

Even though "informative" it gives the wrong impression (i.e. an actual error) and it's also bloody annoying. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

I guess I'll also add an option for interpreting bad words/whois info not as regexps but plain wildcard match using [string match] - and that ought to be default

I'd imagine most xchannel users are more experienced than your average eggdrop owner, but most folks aren't acquainted with regexps anyway
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
e
exhuman
Voice
Posts: 9
Joined: Sat Jul 22, 2006 2:01 pm

Post by exhuman »

Hope you can solve it, i didn't understading why this flashing in every minute in partyline

Code: Select all

(03:36) · (Op3RaToR · [05:46] Tcl error [::xchannel::color]: no such channel record
(03:36) · (Op3RaToR · [05:46] Tcl error [::xchannel::caps]: no such channel record
(03:36) · (Op3RaToR · [05:46] Tcl error [::xchannel::bad]: no such channel record
(03:36) · (Op3RaToR · [05:46] Tcl error [::xchannel::repeat]: no such channel record
(03:36) · (Op3RaToR · [05:46] Tcl error [::xchannel::spam]: no such channel record
(03:39) · (Op3RaToR · [05:50] @#arman (+tn) : [m/45 o/9 h/0 v/2 n/34 b/1 e/- I/-]
(03:40) · (Op3RaToR · [05:50] #arman: mode change '+o WoWThinG' by ChanServ!service@dal.net
(03:42) · RusTeD-FaitH · .set errorInfo
(03:42) · (Op3RaToR · [05:52] #MarhaM# set errorInfo
(03:42) · (Op3RaToR · Currently: can't unset "idx": no such variable
(03:42) · (Op3RaToR · Currently: while executing
(03:42) · (Op3RaToR · Currently: "unset idx"

Code: Select all

(03:36) · (TaYa · [03:06] Tcl error [::xchannel::color]: no such channel record
(03:36) · (TaYa · [03:06] Tcl error [::xchannel::caps]: no such channel record
(03:36) · (TaYa · [03:06] Tcl error [::xchannel::bad]: no such channel record
(03:36) · (TaYa · [03:06] Tcl error [::xchannel::repeat]: no such channel record
(03:36) · (TaYa · [03:06] Tcl error [::xchannel::spam]: no such channel record
(03:40) · (TaYa · [03:10] @#arman (+tn) : [m/44 o/8 h/0 v/2 n/34 b/1 e/- I/-]
(03:46) · RusTeD-FaitH · .set errorInfo
(03:46) · (TaYa · [03:16] #MarhaM# set errorInfo
(03:46) · (TaYa · Currently: no such channel record
(03:46) · (TaYa · Currently: while executing
(03:46) · (TaYa · Currently: "channel get $chan x:spam"
(03:46) · (TaYa · Currently: (procedure "::xchannel::spam" line 5)
(03:46) · (TaYa · Currently: invoked from within
(03:46) · (TaYa · Currently: "::xchannel::spam $_notc1 $_notc2 $_notc3 $_notc4 $_notc5"
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

.restart; if that doesn't help, kill the bot and delete chanfile, then start over
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 »

UPDATE: version 4.1

I've added .xfile dcc command for manipulating bad words and /whois lists from bot's console; please note that there's new setting x:other:match that controls bad words and /whois matching, and it's set by default to 'string' which means the matching is done via [string match]; if you need/have existing regexp word lists stored in files and want the old default matching via [regexp], set this to 'regexp'
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
s
spijon
Voice
Posts: 33
Joined: Sun Aug 27, 2006 9:55 pm

Post by spijon »

possible to add different bantime so w, k, b, b1, b2

where b1 is bantime set to 24houres if the person keep on useing a badword, b2 is ex permban?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no

but that is interesting and makes sense, I might implement it
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
s
spijon
Voice
Posts: 33
Joined: Sun Aug 27, 2006 9:55 pm

Post by spijon »

That would be really nice demond and we will appreciate dude!

And underline and how long the bot remember a user
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

okay folks, that was pretty much it

go grab xchannel 4.2

the final additions:
  • optional ban time in the punish chanset: w:k:b17
  • text-oriented offense handlers now bind also to PART and SIGN
  • .xstats statistics command showing top offenders by channel, offense type or total (you need to enable +x:stats)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

I'm using current version
and wanted to add badword in badwords.txt in follownig manner

[quote]ass hole
son of a bitch
lick my [censored][/quote]

but it looks its not working, and do i use badwords between "" like "ass hole"
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

use *word1\040word2\040word3* or set x:other:match to regexp and use word1\s+word2\s+word3
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

Ok, regexp will be fine but if i want to use wildcard do i use in same way?
word?1\s+word2\s+word??3 or *word* and will that effect the builtin spam detection too, actually i had to add more spam detection then channel adver and www.* etc.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no, you are confused; learn and use either regexps, or Tcl [string] matching - whichever suits you better - but don't mix them up in the same expression
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply