mIRC Home    About    Download    Register    News    Help

Print Thread
[Twitch]ignore text #259421 19/11/16 08:07 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
on *:text:*www.twitch.tv/*:#x3pos:{
msg $chan .timeout $nick 20 no twitch link please.
}

how to ignore only my twitch channel link
www.twitch.tv/x3pos ?

Re: [Twitch]ignore text [Re: x3pos] #259422 19/11/16 11:49 PM
Joined: Oct 2016
Posts: 14
F
FoxInABox Offline
Pikka bird
Offline
Pikka bird
F
Joined: Oct 2016
Posts: 14
I would not take for good fish that this works, as this is my first regex attempt, and don't have any means to test it atm.
Code:
ON *:TEXT:/www.twitch.tv\/^(x3pos)/i:#3pos:{


://i: the two slashes are just the start and end of regex, while the i at the end makes it case INsensitive

www.twitch.tv\/ the \ is to negate the / so it doesn't consider it as the regnex end slash

^(x3pos) I'm unsure if this is correct, but hopefully it will take it as "not x3pos"

Last edited by FoxInABox; 19/11/16 11:49 PM.
Re: [Twitch]ignore text [Re: x3pos] #259425 20/11/16 07:07 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
Code:
ON *:TEXT:/www.twitch.tv\/^(x3pos,https://www.twitch.tv/x3pos/v/101610663,https://www.twitch.tv/x3pos/subscribe?ref=below_video_subscribe_button)/i:#x3pos:{
  msg $chan .timeout $nick 20 no twitch link please.
}

doesnt work...what is wrong?

Re: [Twitch]ignore text [Re: x3pos] #259427 21/11/16 04:17 AM
Joined: Oct 2016
Posts: 14
F
FoxInABox Offline
Pikka bird
Offline
Pikka bird
F
Joined: Oct 2016
Posts: 14
Code:
ON $*:TEXT:/www\.twitch\.tv\/(?!x3pos).*\/?/i:#x3pos:{


there needed to be a $ after ON, and the dots and slashes needed backslashes to be used in it, so the url should look like so:
www\.twitch\.tv\/
(?!x3pos) there should not be any x3pos after the url
.* then any character
\/? followed by a optional slash

I hope that's it ^^;; Took me long enough

Re: [Twitch]ignore text [Re: FoxInABox] #259431 21/11/16 01:06 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
this is working thank you.

Re: [Twitch]ignore text [Re: x3pos] #259630 05/01/17 11:13 AM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
ON $*:TEXT:/www\.twitch\.tv\/(?!x3pos)(?!products/x3pos/ticket?ref=below_video_subscribe_button).*\/?/i:#x3pos:{
msg $chan .timeout $nick 300 no twitch links.
}

own channel link working but
subscribe link not working help please.