Essentially, I want something like this:
<Californ1a>: !on
<Bot>: text
~10 minutes~
<Bot>: text
~10 minutes~
<Bot>: text
<Californ1a>: !off
What I have so far is this, but I'm sure there's something wrong (obviously, because it isn't working), and I'm sure there's an easier way to accomplish this. (I set the timer to 10 seconds for testing)
var %timed = 0
while (%timed == 1) {
.timer 0 10 msg $chan text
}
ON *:TEXT:!on:#Californ1a: {
var %timed = 1
msg $chan text
}
ON *:TEXT:!off:#Californ1a: {
var %timed = 0
}
I know a while loop is wrong because the timer itself loops with the 0 there, but I don't know how to disable that. No doubt someone just facepalmed at how bad that script is so forgive me, just now learning how to use timers.