on *:CONNECT: {
.timertestmsg 0 30 /test.msg
}
on *:DISCONNECT: {
.timertestmsg off
}
alias test.msg {
; ------- Edit Below
var %filename = $shortfn([color:red]C:\path\to\filename\test.msg[/color]) | ; File name
var %channel = [color:red]#mychan[/color] | ; channel to print it to
var %delay = [color:red]1[/color] | ; delay per line
; ------- Edit Above
var %d = 0,%l = 1
while ($read($filename, %l)) {
.timer 1 %d /msg %channel $ifmatch
/inc %d %delay
/inc %l
}
}