A good way is to use the random of $read
Create a file that contain random sentence with $nick etc, for exemple :
Hi $nick $+ .
Hello $nick $+ , how are you ?
...
Then :
on *:TEXT:hi:#:msg $chan $read(file)
The chosen line in the file will be evaluated so be careful.