You mentioned a "response bot" in your post. That would make me think you want it to display a message based on a trigger. For example, a !quote script.

For that, you'd do something like this:
Code:
on *:text:!quote:#: {
  set -u5 %Quote.Fld On
  if (!%Quote.Fld) { msg $chan $read(quote.txt) }
}


The %Quote.Fld thing just gives you some basic flood protection (you can only use !quote once every 5 seconds [-u5] ). You can take this and repeat it for a bunch of different triggers if you want to. You could combine them, but repeating it will be easier to figure out on your own and won't hurt anything.

If you want a script that will read a random line from a random TXT file, you can do this:

Code:
alias RndLine {
  var %total = $findfile($qt($scriptdir\Texts),*.txt,0)
  return $read($qt($findfile($qt($scriptdir\Texts),*.txt,$rand(1,%total))))
}


This assumes that your text files are all in a folder called Texts inside your script's folder. You can change this if you want to (replace Texts with whatever folder name you want). For example, if you have mIRC installed in c:\mIRC\ and you have your script saved in c:\mIRC\Bot\ then your text files should all in c:\mIRC\Bot\Texts\ if you don't change "Texts" to something else.

That can be called just by typing /RndLine from the bot, or you can put it in a timer like this:

Code:
on *:connect: {
  .timerRndLine 0 600 $!iif($!me ison #yourchannel,msg #yourchannel RndLine)
}


Replace #yourchannel with the name of your channel. The 600 is the number of seconds between when it happens. 600s = 10min. You can change that if you want to. This will start the timer when you connect to a network and will repeat a random line from a random file every 600 seconds as long as you're in your specified channel.

You can also combine the !quote trigger code with the RndLine alias so that the !quote trigger makes the random line from a random file happen:

Code:
on *:text:!quote:#: {
  set -u5 %Quote.Fld On
  if (!%Quote.Fld) { msg $chan RndLine }
}


To have it work when everyone's been idle for a long time, you can do this:

Code:
on *:text:*:#yourchannel: {
  .timerIdleRndLine 0 600 $!iif($!me ison $chan,msg $chan RndLine)
}


Again, replace #yourchannel with the name of your channel. This will wait until no one has said anything for 10 minutes (600s) and then say a random line from a random text file. It will then wait 10 minutes and say another line if no one talks within that time period. As long as people are talking, it won't say anything. You can change the 600s to something else if you want to.


Invision Support
#Invision on irc.irchighway.net