Hi, i could use some help with the following script.
The goal is to message a text file in a channel line by line each half a second. During this script the channel is moderated.
The sysntax of the command should be somethin like this:
/READTEXT sometextfile.txt #channel
Here's what i got so far, but doesn't work that.
alias READTEXT {
.mode $$2 +m
.var %numberoflines = $read($$1, 0)
.var %line = 0
.timer1 -m 0 500 {
while (%line < %numberoflines)
.inc %line 1
.msg $$2 $read($$1, %line)
}
if (%line == %numberoflines) {
.timer1 off
.mode $$2 -m
}
}
any suggestions?
Last edited by geejeeNL; 17/05/16 07:52 AM.