Capskicker for bots:
Type: !capskick on , to turn the capskicker on
Type: !capskick off , to turn the capskicker off
Type: !capskick set [N] , to set the allowed percent of caps. [N] is the amount of caps alllowed.
on *:text:*:#: {
if ($me isop $chan) {
if ($nick !isop $chan) {
if (%capskick == on) && ($len($1-) > 5) {
set %caps.percent $calc($regex($1-,/[A-Z]/g)/$len($1-)*100)
if (%caps.percent > %caps.allowed) {
inc %kick
kick $chan $nick $round(%caps.percent,0) $+ % CAPS! 4[ $+ %kick $+ ]
}
}
}
}
if ($1 == !capskick) {
if ($nick isop $chan) {
if ($2 == on) { set %capskick on | msg $chan Capskick is on }
if ($2 == off) { set %capskick off | msg $chan Capskick is off }
if ($2 == set) { set %caps.allowed $3 | msg $chan Caps allowed set to %caps.allowed $+ % }
}
}
}
jackster35-1, this caps kicker works very well for me:
on @*:text:*:*:caps $strip($1-)
on @*:action:*:*:caps $strip($1-)
on @*:notice:*:*:caps $strip($1-)
alias -l caps {
var %. ,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,%; $len($remove($1- [ %. ] )),%: $len($1-) - %;
if ($calc(100*($len($removecs($1- [ %. ] ))-%;)/%:) > 50) && (%: > 5) { var %chan #YourChannel
set -u $+(%,c,$chr(32),$int($ifmatch)) | kick %chan $nick You've used $+(%c,%) of CAPS!
}
}
All you need to do is replace #YourChannel with the channel you want to work in. The percentage is adjustable under > 5
The bigger the number, the less strict it becomes.
I have a suggestion, add ban $chan $nick $address to perminently ban the user, I notice when user gets kicked they rejoin. Defeats the whole purpose of the script and your efforts. Well it was just a suggestion. Great script , it works for me.
ban $chan $nick $address
kick $chan $nick $round(%caps.percent,0) $+ % CAPS! 4[ $+ %kick $+ ]