Hi, so I have a problem, and need some help.

So I made this, bot picks random user from chat and write something to him, my question is how to make that bot would wait for user response.
For example:
Bot: User <text from file a1>
Waiting for User response...
User: text
Bot: <text from file a2>

Quote:
on $*:text:/^(\S+)/:#:{
if ((%floodrandomk) || ($($+(%,floodrandomk.,$nick),2))) { return }
set -u4 %floodrandomk On
set -u5 %floodrandomk $+ $nick On
set %randnick $nick($chan,$rand(1,$nick($chan,0))) {
msg $chan %randnick $read(a1.txt,n) } {
if ($nick = %randnick) msg $chan %randnick $read(a2.txt,n) } ; main problem is here
}