mIRC Home    About    Download    Register    News    Help

Print Thread
Help me: Auto reply with a piece of message #254887 08/09/15 04:42 PM
Joined: Jul 2015
Posts: 25
Q
quanbhvn Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
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

Last edited by quanbhvn; 08/09/15 04:43 PM.
Re: Help me: Auto reply with a piece of message [Re: quanbhvn] #254893 08/09/15 09:39 PM
Joined: Sep 2015
Posts: 18
R
REDxPHOEN Offline
Pikka bird
Offline
Pikka bird
R
Joined: Sep 2015
Posts: 18
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 
Re: Help me: Auto reply with a piece of message [Re: REDxPHOEN] #254907 09/09/15 01:01 AM
Joined: Jul 2015
Posts: 25
Q
quanbhvn Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
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:


Last edited by quanbhvn; 09/09/15 01:07 AM.
Re: Help me: Auto reply with a piece of message [Re: quanbhvn] #254908 09/09/15 01:28 AM
Joined: Jan 2004
Posts: 1,287
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,287
Code:
on *:text:dapan: *:#:msg # $2-

Re: Help me: Auto reply with a piece of message [Re: Loki12583] #254913 09/09/15 01:26 PM
Joined: Jul 2015
Posts: 25
Q
quanbhvn Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Originally Posted By: Loki12583
Code:
on *:text:dapan: *:#:msg # $2-


Ok, thank you. Very good.