#Set this to the minimum string wize, before it will act
#IE, set 6, "HELLO" = no kick, "HELLO ALL" = kick
set cap_min 6
#set this tot he percentage, wihtout any percentage char
#IE, 50
set cap_per 50
bind msgm - "*" cap:perc:kick
proc cap:perc:kick {nick uh hand chan arg} {
global cap_per cap_min
if {[string length $arg] <= $cap_min} { return }
set full [string length $arg]
regsub -all {[A-Z]} $arg "" arg
set perc [expr (($full - [string length $arg]) / $full) * 100]
if {$perc >= $cap_per} {
putserv "KICK $chan $nick :*** NO *** caps please!!!) ([string range $perc 0 5])"
}
}
#########################################
# capsGF.tcl (GF stands for G-Force bot)
# credits goes to:
# ppslim, Papillon
#
#########################################
#
#Set this to the minimum string wize, before it will act
#IE, set 6, "HELLO" = no kick, "HELLO ALL" = kick
set cap_min 6
#set this tot he percentage, wihtout any percentage char
#IE, 50
set cap_per 50
bind pubm - "*" cap:perc:kick
proc cap:perc:kick {nick uh hand chan arg} {
global cap_per cap_min
if {[string length $arg] <= $cap_min} { return }
set full [string length $arg]
regsub -all {[A-Z]} $arg "" arg
set perc [expr (($full - [string length $arg]) / $full) * 100]
if {$perc >= $cap_per} {
putserv "KICK $chan $nick :*** NO *** caps please!!!) ([string range $perc 0 5])"
}
}
[13:24] <Mackie> TTTTTTTTTTEEEEEEEEEESSSSSSSSSSTTTTTTTTTTEEEEEEEEEE E
[13:25] <Mackie> TTTTTTTTTTEEEEEEEEEESSSSSSSSSSTTTTTTTTTTEEEEEEEEEE EE
[13:26] <Mackie> TTTTTTTTTTEEEEEEEEEESSSSSSSSSSTTTTTTTTTTEEEEEEEEEEAAAAA
[13:26] *** Mackie was kicked by @G-Force (*** NO *** caps please!!!) (100))
#Set this to the minimum string wize, before it will act
#IE, set 6, "HELLO" = no kick, "HELLO ALL" = kick
set cap_min 6
#set this tot he percentage, wihtout any percentage char
#IE, 50
set cap_per 50
bind pubm - "*" cap:perc:kick
proc cap:perc:kick {nick uh hand chan arg} {
global cap_per cap_min
if {[string length $arg] <= $cap_min} { return }
set full [string length $arg]
regsub -all {[A-Z]} $arg "" arg
putlog "$arg"
set perc [expr (($full - [string length $arg]) * 100) / $full]
putlog "$perc"
if {$perc >= $cap_per} {
putserv "KICK $chan $nick :*** NO *** caps please!!!) ([string range $perc 0 5]% caps)"
}
}
[14:24] <Mackie> oki we try start with lowercase AND THEN CAPS BEHIND
[14:24] <Mackie> AND NOW CAPS IN FRONT lower case behind
[14:25] <Mackie> AND NOW CAPS IN FRONT NOTHING BEHIND
[14:25] *** Mackie was kicked by @G-Force (*** NO *** caps please!!!) (81% caps))
oki we try start with lowercase AND THEN CAPS BEHIND = 32% caps
AND NOW CAPS IN FRONT lower case behind = 42% caps
AND NOW CAPS IN FRONT NOTHING BEHIND = 81% caps
AAAAAAAAAAAAAAAAAAA = 100% caps
it recognises lowercaps it just don't do anything unless it is more than 50% caps.....
taht's what the "set cap_per 50" is 4
change it if u want