Hey everybody smile I'm trying to write a short countdown script. A user types !countdown 3 then it will count down 3 seconds, and after that the timer should continue to countdown always a certain amount of time continuously, posting a short message that another time set is over until someone says !countstop.

Well the countdown part is pretty simple, but how to make it reoccurring, I can't figure out. I tried it already with Input so the script would take it's own written text but that wouldn't work either, since it only takes typed text in the message box. Is there someway to do it with a loop. I still haven't quite figured how the countdown command exactly works in irc.

on *:text:!countdown &:#:{
if (!$timer(countdown)) { .timercountdown 1 $2 msg $chan Time's up }

Thanks for the help.