Alternatively you could check out the /play command and its -t switch. It works like so:
In a text file, put all the relative info in this format:
Quote:
[topic1]
text
text
text
[topic2]
text
text
text
etc..Then use:
Code:
//play -t<TopicHere> $chan lines.txt 2000
<TopicHere> are the ones enclosed by the [topic1] and [topic2]When you have specified topic1, it'll only play the texts within topic1 and so on and so forth.