This is a very Simple Timed Bans snippet. If you want to ban someone from a channel for a certain time limit, right click their nickname and Select 'Timed KickBans'. Next, you click on the time limit that you want the person to be banned for. Next, you will be prompted to enter a reason for kicking them. After you've kick-banned the person out of the channel, the timer will start. At the appropriate time, you will automatically unban the person you banned.
alias ban2 {
mode $chan +b $address($1,2)
/kick $chan $1 $2- *Two Minute Ban*
/timer 1 120 /mode $chan -b $address($1,2)
}
alias ban5 {
mode $chan +b $address($1,2)
/kick $chan $1 $2- *Five Minute Ban*
/timer 1 300 /mode $chan -b $address($1,2)
}
alias ban10 {
mode $chan +b $address($1,2)
/kick $chan $1 $2- *Ten Minute Ban*
/timer 1 600 /mode $chan -b $address($1,2)
}
alias ban30 {
mode $chan +b $address($1,2)
/kick $chan $1 $2- *Thirty Minute Ban*
/timer 1 1800 /mode $chan -b $address($1,2)
}
alias ban60 {
mode # +b $address($1,2)
/kick $chan $1 $2- *One Hour Ban*
/timer 1 600 /mode $chan -b $address($1,2)
}
Menu Nicklist {
Timed KickBans
.2 Minutes:/ban2 $1 $$?="Reason:"
.5 Minutes:/ban5 $1 $$?="Reason:"
.10 Minutes:/ban10 $1 $$?="Reason:"
.30 Minutes:/ban30 $1 $$?="Reason:"
.60 Minutes:/ban60 $1 $$?="Reason:"
}