ON $*:TEXT:/^[!@.](remind|reminder) /Si:#:{
IF (!$findtok(Seconds;Minutes;Hours,$3,59)) { notice $nick 1*** [4Remind1]: Usage: !remind <time> <seconds/minutes/hours> <what to remind you of> | Halt }
IF ($2 !isnum) { notice $nick 1*** [4Remind1]: Usage: !remind <time> <seconds/minutes/hours> <what to remind you of> | Halt }
var %remind.math $Replace($3,Seconds,1,Minutes,60,Hours,3600)
timer 1 $calc($2 * %remind.math) notice $nick 1*** [4Remind1]: Reminding you of: $4-
notice $nick 1*** [4Remind1]: I will remind you of $qt($4-) in $2 $Replace($3,seconds,Seconds,minutes,Minutes,hours,Hours) $+ . Please note this is a basic command and NOT meant for very long term reminders. May be changed in the future.
}
ON $*:TEXT:/^[!@.](chanremind|chanreminder) /Si:#:{
IF ($nick !isop $chan) { notice $nick 1*** [4Channel Remind1]: Sorry. Channel Remind is an Op only command. Half Ops and below may not use it (This is done to limit abuse.) | halt }
IF ($2 == off) { timer.remind. [ $+ [ $chan ] ] off | notice $nick 1*** [4Channel Remind1]: Reminder for $chan Halted. | halt }
IF (!$findtok(Minutes;Hours,$3,59)) { notice $nick 1*** [4Channel Remind1]: Usage: !chanremind <time> <seconds/minutes/hours> <what to remind $chan of> | Halt }
IF ($2 !isnum) { notice $nick 1*** [4Channel Remind1]: Usage: !chanremind <time> <minutes/hours> <what to remind $chan of> | Halt }
IF ($2 < 9) { notice $nick 1*** [4Channel Remind1]: To limit spamming, channel reminds must be set at 10 minutes or higher. | halt }
var %remind.math $Replace($3,Minutes,60,Hours,3600)
timer.remind. [ $+ [ $chan ] ] 0 $calc($2 * %remind.math) notice $chan *** [4Remind1]: $nick requested reminder of: $qt($4-) 15(!chanremind off to stop)
notice $nick 1*** [4Channel Remind1]: I will remind $chan of $qt($4-) every $2 $Replace($3,minutes,Minutes,hours,Hours) $+ . Please note this is a basic command and NOT meant for very long term reminders. May be changed in the future.
}