Hi I think this is what you are looking for. It will reply to someone when they say a word or sentence you have chosen.

Code:
 on *:TEXT:Hi:#: { msg $chan Hello, How are you? } 


I think that is correct anyway.

the
Code:
 on *:TEXT: 
means when someone types the following...

The
Code:
 :Hi: 
Is what you want to reply to.

The
Code:
 :#: 
Means that it will be sent to any channel as long as someone says Hi. You can specify which channel you want it to work on so for example if you are in 2 channels but you only want to reply to one all you need to do is instead of # put the channel name so something like #MIRC. That means it will only reply to the channel named #MIRC if you are connected to it that is.

The
Code:
 msg $chan 
means that it will send the reply to the same channel and not all.

after the
Code:
 msg $chan 
you type your message you want to reply with. I put Hello, How are you? as an example you can put something different.


Code:
 $I.am.REDxPHOEN 

Code:
 $I.am.THE.one.AND.only 

Code:
 $I.am.THE.best