on $*:TEXT:/^[!@.]timer */Si:*: {
{ if ($2 > 1) { notice $nick Your timer of $2 minutes has started, $nick } { timer $+ $nick 1 $calc(60*$2) notice $nick Your timer of $2 minutes has ended. } }
{ if ($2 <= 1) { notice $nick Your timer of $2 minute has started, $nick } { timer $+ $nick 1 $calc(60*$2) notice $nick Your timer of $2 minute has ended. } }
{ if ($2 <=5) $timer 1 $calc((60*$2) - 10) notice $nick You have 10 seconds remaining }
{ if ($2 > 5) $timer 1 $calc((60*$2) -30) notice $nick You have 30 seconds remaining in your timer }
}
on $*:TEXT:/^[!@.]endtimer/Si:*: { timer $+ $nick off } { notice $nick Your timer has been stopped }
on $*:TEXT:/^[!@.]checktimer/si:*: {
{ if ($calc($timer($nick).secs / 60) < 1) notice $nick You have $timer($nick).secs seconds remaining in your timer }
{ if ($calc($timer($nick).secs / 60) > 1) notice $nick You have $calc($timer($nick).secs / 60) minutes remaining in your timer }
}