So I'm having an issue with my bot executing the command given from the timer.
on *:TEXT:`timer*:#: {
/timerPoints 0 30 /givePoints
}
alias givePoints {
msg $chan I MADE IT TO THE THING
var %status = 0
var %i = 1
var %curr_nick = $null
while ( %status == 0 ) {
%curr_nick = $nick(#,%i)
if ( %curr_nick == $null ) {
%status = 1
}
else {
set %points $calc($readini(viewers.ini, n, points, %curr_nick) + 1)
writeini viewers.ini points %curr_nick %points
}
inc %i
}
}
I can use mIRC to do the command manually, but you can see that it's supposed to shout "I MADE IT TO THE THING" and it doesn't do that with the timer. I've tried all variations of trying to make the command work with the timer, but the timer itself works since if I tell the timer to simply say a message, it'll repeat it every 30 seconds.
tl;dr: My timer won't call the command.