In Remotes (ALT+R) preferably in a new file (File > New):
on *:text:blabla:#channel:{ msg # $read(james.txt) }
This reads a random line from 'james.txt' when someone types 'blabla'. You need to change #channel for the channel name. The reason I suggest you specify a channel name is because if you put '#' then it will work on any channel you're on, and you will be banned for something like this.
Also see
/help $read and
/help on text.
Oh, just an FYI, if you have a scripting question it's best asked in the Scripts & Popups forum
Hope this helps!
Regards,