This is a simple ban timer script which you simply do as following:
[15:44] <@blodix> !ban Unknown.nick 3
[15:44] BlodBot sets mode: +b Unknown.nick and etc.
[15:44] This Unknown.nick and etc. ban affects: Unknown.nick
[15:44] * BlodBot sets mode: -b Unknown.nick and etc.
Well.. Very simply.. And remember the timer is in seconds.
on *:TEXT:!ban *:# {
if ($nick isop $chan) {
set %ban $3
timer 1 %ban /mode $chan -b $address($$2,5)
/mode $chan +b $address($$2,5)
}
else {
msg $chan permission denied.
}
}
um no need for the set var as well no need for the timer
on $@*:TEXT:/^@ban\s(\S+)\s(\d+)$/iS:# {
if ($nick isop # && $regml(1) ison #) { ban $+(-u,$regml(2)) # $regml(1) 5 }
else { msg # permission denied. }
}
or
on $@*:TEXT:/^@ban/iS:# {
if ($nick isop # && $2 ison #) { ban $+(-u,$3) # $2 5 }
else { msg # permission denied. }
}