#bs(no_log) is a list of channels you *don't* want the bot to log
# data on. Enter chans in lower case.
setbs(no_log)""
#bs(log_only) is a list of channels you *only* want the bot to log
# data on. This is the opposite of bs(no_log). Set it to "" if you
# want to log new channels the bot joins. Enter chans in lower case.
setbs(log_only)""
#bs(cmdchar) is what command character should be used for making public
# queries. The default is "!". Setting it to "" is a valid option.
setbs(cmdchar)"!"
#bs(flood) is used for flood protection, in the form x:y. Any queries
# beyond x in y seconds is considered a flood and ignored.
setbs(flood)4:15
#bs(ignore) is used as a switch for ignoring flooders (1=on)
setbs(ignore)1
#bs(ignore_time) is used to define the amount of time a flooder is
# ignored (minutes). This is meaningless if bs(ignore) is 0.
setbs(ignore_time)2
#bs(smartsearch) is a master enable/disable for SmartSearch. SmartSearch ensures that
# the most accurate and current results are returned for nick queries. (1=on)
setbs(smartsearch)1
#bs(logqueries) is used to log DCC/MSG/PUB queries
setbs(logqueries)1
#bs(path) is used to indicate what path to save the database and backup to.
# Setting to "" will cause the script to be saved in the same path as the eggdrop executable
# If you set it, use the full path, and make sure you terminate w/ a "/".
# eg: set bs(path) "/usr/home/mydir/blah/"
setbs(path)"$username/"
###### Don't edit below here, even if you do know Tcl ######
if{[bindmsg-|-help]!="*msg:help"}{bindmsg-|-help*msg:help};#this is to fix a bind I didn't intend to use in a prev version (which screwed up msg'd help). Sorry!
set command [lindex $args 0] ; set target [lindex $args 1] ; set nick [lindex $args 2] ; set search [bs_filt [join [lrange $args 3 e]]]
if {[string match *\\\** $search]} {
set output [bs_seenmask bot $nick $search]
if {$output != "Nomatcheswerefound." && ![string match "I'm not on *" $output]} {putbot $from "bs_botsearch_reply$command\{$target\}{$nick,$botnicksays:[bs_filt$output]}"}
} {
set output [bs_output bot $nick [bs_filt [lindex $search 0]] 0]
return"Currently I am tracking [array size bs_list]/$bs(limit) nicks, which comprise $totalm unique uhosts. The oldest record is [lindex $bs_list($name) 0]'s, which is from [bs_when $bs_record] ago."
}
binddcc-|-chanstatsbs_dccchanstats
procbs_dccchanstats{handidxargs}{
if{$args=="{}"}{setargs[console$idx]}
if{[lindex$args0]=="*"}{putdcc$idx"$hand, chanstats requires a channel arg, or a valid console channel.";return1}
return"$chan is the source of [expr 100*$totalc/$total]% ($totalc/$total) of the seen database entries. In $chan, there were a total of $totalm unique uhosts seen in the last [bs_when $bs_record]."