mIRC Homepage
Posted By: quanbhvn Help me: Auto reply with a piece of message - 08/09/15 04:42 PM
Please help me.

I want automatic replies when someone in the channel message. My answer is part of that message.

Eg:

<Peter> hello! How are you?
<my nick> How are you?
<Peter> hello! .... a text any
<my nick> .... a text any

illustration:





Thank you
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.
Thank REDxPHOEN.

But I want to reply with a part of his message. After removing a few certain characters

eg:
<his nick> dapan: abc def xyz
<my nick> abc def xyz

then he continued messaging:

<hiss nick> dapan: abcdefghij
<my nick> abcefghij


That means:

If his message is:
Code:
dapan: abcd efgh ijkl


(automatic) My reply is:
Code:
 abcd efgh ijkl


characters removed are:
Code:
dapan:

Code:
on *:text:dapan: *:#:msg # $2-
Originally Posted By: Loki12583
Code:
on *:text:dapan: *:#:msg # $2-


Ok, thank you. Very good.
© mIRC Discussion Forums