My first mirc script in N amount of months....Please go easy on me.
on *:text:.Reminder*:#:{
set %reminder $2-
set %nick $nick
set %ro on
if(%ro == on) { Notice $nick No. Bad. | halt }
Notice $nick Okay $nick $+ , I will remind you that/to $1- in 10 minutes. If you'd rather me remind you at a later time, please specify when you recieve my reminder notice.
.timer 1 600 Notice $nick Hello, you've requested that I remind you that... %reminder
.timer 1 602 unset %ro
}
hxck, for the first part of your "minute" routine, the %nick should have been $nick. There is no %nick variable being set. Can you tell me what is the point of > else { halt }You can do this with regex:
on $*:text:/remind .+ (\d+) (minute|hour)s?\b (.+)/iS:?:{
var %x $regml(1), %msg msg $nick Will do, $nick $+ .
var %time $calc(%x * 60), %time2 $calc(%x * 3600)
var %msg2 msg $nick Yo $nick $+ , $+(Reminder:,$chr(32),$regml(3))
%msg | .timer 1 $iif($istok(minute minutes,$regml(2),32),%time,%time2) %msg2
}