Code:
on *:text:hi:?: {
  inc -u600 %autohi. $+ $nick
  if ($($+(%,autohi.,$nick),2) < 3) { .timer 1 3 msg $nick hello! }
}


That will allow it to reply only 2 times to the word "hi" from the same nick within 10 minutes. Note that the 10 minute timer restarts if the nick says "hi" again. So if someone says "hi" every 5 minutes for an hour, you'd only auto-reply 2 times to that person. If someone says "hi" twice, then says "hi" again 15 minutes after the last "hi" by that person, then you'll auto-reply again.

I'm not sure I explained that well, so if you don't understand what I mean, let me know.


Invision Support
#Invision on irc.irchighway.net