hey , I have this code in remote
on *:input:#:{
if ($1 == !msg) { timer 0 60 /amsg $!+ $!rand(1,12) $!read(wize.txt) }
}
it reads random lines from the file wize.txt I wanna a code that reads lines in order
X-Fusion helped me with this code
alias wize {
inc %wize.number
timer 0 60 amsg $rand(1,12) $read(wize.txt, $+ %wize.number $+ )
}
}
and in variables ( %wize.number 0 )
but when it works it keeps send the first line in the file wiz.txt to channel
I tried
alias wize {
inc %wize.number
timer 0 60 amsg $rand(1,12) $!read(wize.txt, $+ %wize.number $+ )
}
}
but also it sends the first line only
May anyone tells me what's wrong ?