Just a simple idle kicker. It will kick anyone other than ops and halfops who have idled longer than you set the check for.
;===Idle Checker===;
alias check.idle {
var %chan = $1
if ( %i.limit [ $+ [ $1 ] ] == 0 ) {
.echo 4 -a Idle Check is not set for this #channel
return
}
var %nick = $nick(%chan,0,a,oh)
while (%nick) {
if ( $nick(%chan,%nick,a,oh).idle != $me ) {
if ( $nick(%chan,%nick,a,oh).idle > %i.limit ) {
.kick %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit
}
}
dec %nick
}
}
menu channel {
-
Idle Limiter
.Set :set %i.limit [ $+ [ $chan ] ] $$?="Idle limit? (60 = 1 minute) "
.Reset :unset %i.limit [ $+ [ $chan ] ]
.Check:check.idle $chan
-
}
is there anyway to make this de-voice rather then kick.. spent the last hour trying things, haven't a clue what im doing
i tried changing this line :
[ code ] .kick %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
to
[ code ] -v %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] mode -v %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] .mode -v %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] -v $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] mode -v $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] .mode -v $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] .-v %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] .devoice %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] .devoice $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] devoice %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] devoice $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
[ code ] mode .devoice %chan $nick(%chan,%nick,a,oh) Idle Time Limit is : %i.limit [ /code ]
.....bleh bleh bleh..etc etc
could be here all year tbh
anyone any ideas? or is it even possible to change the script to make it devoice not kick?
regards
pan
Cheiron, use this version instead. Since you're to mainly kick for regular idlers. You can simply use the r. I also added a channel settings so you can choose which channel to watch out for idlers. If no channel specified, the script will kick them on the channel where you are:
menu * {
-
Idle Limit Settings
.Set Channel {
set %i.chan $$?="What Channel? (#channel) "
}
.Set Limit for Idling {
set %i.limit $$?="Idle limit? (60 = 1 minute) "
}
.Reset the Idle Limit {
unset %i.limit
notice $me idle time limit has been unset.
}
.Turn Idle Check On {
.enable #idlecheck
echo -a * Auto-Idle Check Has Been Turned On
.timeridle 0 10 idlecheck
}
.Turn Idle Check Off {
.disable #idlecheck
echo -a * Auto-Idle Check Has Been Turned Off
.timeridle off
}
-
}
#idlecheck on
#idlecheck end
alias -l idlecheck {
var %ci = $iif($(,%i.chan),$v1,#)
tokenize 32 $remtok($regsubex($str(.,$nick(%ci,0,r)),/./g,$&
$iif($nick(%ci,\n,r).idle > $iif($(%i.limit,2),$v1,1800),$&
$nick(%ci,\n,r)) $chr(32)),$me,32)
kick %ci $* Idle Time Limit is $iif($(,%i.limit),$v1,1800) seconds.
}
P.S. You should think about banning them for a minute or two. They can easily rejoin the channel and idle again. And that'll be nonstop. If you want, you can change the kick bit to this one:
ban -ku120 %ci $* 2 Idle Time Limit is $iif($(,%i.limit),$v1,1800) seconds.
This will ban their hosts for 2 minutes before they can come back.
I am not a script writer, i come to hawkee for ideas to use for scripts to add to my bot. I really like this script however, I just want to add a script that will continually check idle time on nicks in channel and not kick or ban. I prefer the ops to do so if needed rather than automated. Can someone help me?
hmm
this script seens slighty too long couldn't it be made smallerlike this:
alias idle { set %idle 900
var %nick = $nick(%chan,0,a,oh)
while (%nick) {
if ( $nick(%chan,%nick,a,oh).idle != $me ) {
if ( $nick(%chan,%nick,a,oh).idle > %i.limit ) {
ban -ku180 # $nick idle time exceeded!!!
unset %nick
unset %idle }
}
}
}
ok first time posting to this and i am real new and trying to teach myself how to write these and where to put them. so if anyone can help or just give me a push in the right direction i would greatly thank you.
like this one i put it in a bot but im not sure if i put it in the right spot and were do you change the time at?