mIRC Home    About    Download    Register    News    Help

Print Thread
Relay on specific text #251761
02/03/15 09:01 PM
02/03/15 09:01 PM
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
TruCK  Offline OP
Self-satisified door
T

Joined: Mar 2015
Posts: 4
Hello,

I searched all over the forums before I made an account. I see some scripts out there that seem like they would be really close to what I need but not exactly.

I would like to have a relay script that will relay what is said on one chan on one server to another chan on a different server. I would also like it to filter only specific words.

Example I would like to see every time "JoJo" said "good morning" from the chan #hobbit on server irc.a.net relayed to chan #middleearth on server irc.b.net.

I dont care about when bilbo says anything else. only when he says something that contains good morning.

Re: Relay on specific text [Re: TruCK] #251762
02/03/15 09:04 PM
02/03/15 09:04 PM
Joined: Dec 2013
Posts: 779
Sweden
N
Nillen Offline
Hoopy frood
Nillen  Offline
Hoopy frood
N

Joined: Dec 2013
Posts: 779
Sweden
Literally searched for 'relay'

For filtering words. If statements are used, and you might want to read up on regular expressions or use static wildcards.

/help if then else
/help on text
/help regular expressions


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Relay on specific text [Re: Nillen] #251763
02/03/15 09:11 PM
02/03/15 09:11 PM
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
TruCK  Offline OP
Self-satisified door
T

Joined: Mar 2015
Posts: 4
I saw that script before I created my account. ON that script where would I add "good morning"

Re: Relay on specific text [Re: TruCK] #251768
02/03/15 09:33 PM
02/03/15 09:33 PM
Joined: Dec 2013
Posts: 779
Sweden
N
Nillen Offline
Hoopy frood
Nillen  Offline
Hoopy frood
N

Joined: Dec 2013
Posts: 779
Sweden
/help on text
/help if then else
Type this into your editbox in mIRC and read these help files, they're very useful.

You can choose to use it either in the event or as the event.
on *:text:*good morning*:#: { }
on *:text:*:#: {
if (good morning isin $1-) { }
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Relay on specific text [Re: Nillen] #251772
02/03/15 09:45 PM
02/03/15 09:45 PM
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
TruCK  Offline OP
Self-satisified door
T

Joined: Mar 2015
Posts: 4
thanks,
on *:text:*good morning*:#: { }
is what I was looking for.

Re: Relay on specific text [Re: TruCK] #251773
02/03/15 09:47 PM
02/03/15 09:47 PM
Joined: Dec 2013
Posts: 779
Sweden
N
Nillen Offline
Hoopy frood
Nillen  Offline
Hoopy frood
N

Joined: Dec 2013
Posts: 779
Sweden
That will trigger for any user and not just from JoJo.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Relay on specific text [Re: Nillen] #251775
02/03/15 10:47 PM
02/03/15 10:47 PM
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
TruCK  Offline OP
Self-satisified door
T

Joined: Mar 2015
Posts: 4
How would I set it to a specific user?

Re: Relay on specific text [Re: TruCK] #251776
02/03/15 11:16 PM
02/03/15 11:16 PM
Joined: Dec 2013
Posts: 779
Sweden
N
Nillen Offline
Hoopy frood
Nillen  Offline
Hoopy frood
N

Joined: Dec 2013
Posts: 779
Sweden
if ($nick == username) { }
read the help files I provided


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net