mIRC Homepage
Posted By: x3pos [Twitch]ignore text - 19/11/16 08:07 PM
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 ?
Posted By: FoxInABox Re: [Twitch]ignore text - 19/11/16 11:49 PM
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"
Posted By: x3pos Re: [Twitch]ignore text - 20/11/16 07:07 PM
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?
Posted By: FoxInABox Re: [Twitch]ignore text - 21/11/16 04:17 AM
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
Posted By: x3pos Re: [Twitch]ignore text - 21/11/16 01:06 PM
this is working thank you.
Posted By: x3pos Re: [Twitch]ignore text - 05/01/17 11:13 AM
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.
© mIRC Discussion Forums