mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2015
Posts: 25
Q
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.
Joined: Sep 2015
Posts: 18
R
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 
Joined: Jul 2015
Posts: 25
Q
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.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Code:
on *:text:dapan: *:#:msg # $2-

Joined: Jul 2015
Posts: 25
Q
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.


Link Copied to Clipboard