This can be done through a separate alias, for example with the name "rand_msg", which will be activated by a timer every 300 secs.
The body of this alias will contain a command for sending to the #channel a random message from your file.

Try using this script code:
Code
alias timer_start { rand_msg | .timerRANDMSG 0 300 rand_msg }
alias timer_stop { .timerRANDMSG off }
alias -l rand_msg { msg #channel $read(addons\miefrasibot\frasibot.txt) }

Command to start the timer: /timer_start
Command to stop the timer: /timer_stop


Screenshot with an example of sending a message every 10 secs:

     [Linked Image from i.ibb.co]


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples