on $*:TEXT:/^[!@]start/Si:#:{
if ($nick isop $chan || $nick ishop $chan) {
/msg $chan 12The game has started! To register: 4!reg10. Game starts in 2 minutes!
/timer 1 60 /msg $chan 4Attention! 12There is only 1 minute left! To register: 4!reg12!
/timer 1 120 /msg $chan 12Registration is almost over, those who haven't registered yet, this is your last chance!
/timer 1 150 /mode $chan +m
//timer 1 150 /msg $chan 12Regestration has ended and now the roles will be given out
//timer 1 150 set %blah on
}
}
on $*:TEXT:/^[@!]reg/Si:#:{
if (%blah) { .notice $nick sorry, registration has ended. | halt }
/mode $chan +v-oh $nick $nick $nick
}
on $*:TEXT:/^[@!]halt/Si:#:{
set %blah on
if ($nick isop $chan || $nick ishop $chan) {
/timers off
/msg $chan 4the bot has been halted by operator $nick
/mode $chan -m
}
}
on $*:text:/^[@!]continue/Si:#:{
unset %blah
}
on $*:TEXT:/^!unreg ?/Si:#:{
/mode $chan -v+oh $nick $nick $nick
}