| View previous topic :: View next topic |
| Author |
Message |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Aug 28, 2006 11:13 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Aug 29, 2006 12:40 am Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Aug 29, 2006 1:14 am Post subject: |
|
|
| 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.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Sep 02, 2006 11:50 pm Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
exhuman Voice
Joined: 22 Jul 2006 Posts: 9
|
Posted: Fri Sep 08, 2006 6:15 pm Post subject: |
|
|
Hope you can solve it, i didn't understading why this flashing in every minute in partyline
| Code: |
(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: |
(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"
|
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Sep 09, 2006 3:49 am Post subject: |
|
|
.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] tag when posting logs, code |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 10, 2006 4:24 am Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
spijon Voice
Joined: 27 Aug 2006 Posts: 33
|
Posted: Fri Sep 29, 2006 5:56 am Post subject: |
|
|
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? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Sep 29, 2006 11:20 pm Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
spijon Voice
Joined: 27 Aug 2006 Posts: 33
|
Posted: Tue Oct 03, 2006 8:13 am Post subject: |
|
|
That would be really nice demond and we will appreciate dude!
And underline and how long the bot remember a user |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Nov 02, 2006 4:43 am Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Sat Nov 18, 2006 5:20 am Post subject: |
|
|
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" |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Nov 18, 2006 10:06 pm Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Sun Nov 19, 2006 5:26 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Nov 19, 2006 10:05 pm Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
|