mIRC Homepage

[Twitch] timing out things that contains a word?

Posted By: FluffehKitteh

[Twitch] timing out things that contains a word? - 06/08/15 11:11 PM

So I have an idea of how this but its not going as planned.
Basically i'm trying to figure out how to timeout this link that a bot keeps coming into this channel that I mod for, but problem is it keeps bypassing the timeout for links, its a shortened URL that is a download to a virus, multiple people have gotten viruses from this.

I currently have this:

Code:
on *:text:*.apo.af*:#:{
  if ($read(reglist.txt,nw,$nick)) return
  Msg # .timeout $nick 1
  Msg # Don't click this link, its a virus. 
}


My question is, is it possible to timeout a sentence that contains "apo.af" which is the start of the shortened link for the download. Whenever I try that code it only times out if its "apo.af" i'm wondering if it could timeout things that contains that.
Posted By: MattiSony

Re: [Twitch] timing out things that contains a word? - 07/08/15 01:40 AM

Try to take away the . in front of apo.af
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 08/08/15 12:39 AM

still doesn't work frown http://i.imgur.com/Zcz2nRS.png
Posted By: Sakana

Re: [Twitch] timing out things that contains a word? - 08/08/15 02:56 AM

Try this

Code:
on $*:TEXT:/apo\.af/:#: { 
msg # virus etc
msg # /timeout $nick 
}
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 08/08/15 03:45 AM

same thing frown
Posted By: Sakana

Re: [Twitch] timing out things that contains a word? - 08/08/15 02:20 PM

Originally Posted By: FluffehKitteh
same thing frown


It works for me. Put it in a new script file, you probably have another ON TEXT blocking it
Posted By: keyeslol

Re: [Twitch] timing out things that contains a word? - 08/08/15 04:36 PM

Try this:

Code:
on *:TEXT:*apo.af/*:#: {
  msg # .timeout $nick 600 
}
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 08/08/15 04:51 PM

I tried that but it only blocks out if someone types "apo.af" if the link was posted like this "apo.af/testest" it still allows it
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 08/08/15 04:52 PM

same thing above
Posted By: keyeslol

Re: [Twitch] timing out things that contains a word? - 08/08/15 04:57 PM

I just tried it, and it worked for me.
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 09/08/15 12:18 AM

Is something wrong here for me? http://i.imgur.com/nAoFvkL.png
I did it exactly how yours is, but still doesn't timeout.
Posted By: Sakana

Re: [Twitch] timing out things that contains a word? - 09/08/15 01:06 AM

put it in an empty script file
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 09/08/15 04:07 AM

I have but still doesn't work.
Posted By: Sakana

Re: [Twitch] timing out things that contains a word? - 09/08/15 04:15 AM

Uhm, try typing in /remote on
If it still doesn't work I duno what's wrong, maybe try reinstalling
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 09/08/15 10:58 PM

tried reinstalling as well and still isn't working frown if anyone else has any suggestions it would be much appreciated
Posted By: Sakana

Re: [Twitch] timing out things that contains a word? - 10/08/15 08:26 AM

It's possible you need this

Quote:

on *:CONNECT: {
if ($server == tmi.twitch.tv) {
raw CAP REQ: twitch.tv/membership
raw CAP REQ: twitch.tv/commands
}
}
Posted By: Khonor

Re: [Twitch] timing out things that contains a word? - 11/08/15 12:30 AM

It's possible you need this. - http://forums.mirc.com/ubbthreads.php/topics/254093/
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 12/08/15 02:16 AM

I've already requested the admin thing, i'm pretty sure my client is fine, all my other commands are doing well too but this one.
Posted By: keyeslol

Re: [Twitch] timing out things that contains a word? - 18/08/15 10:55 PM

One thing i've noticed, is that 10% of the time or so, my own bot won't timeout something.

I think what will need to be done, is check for $rawmsg contains $nick timeout, if not, send the timeout again.

I'll experiment.
Posted By: Nordy

Re: [Twitch] timing out things that contains a word? - 28/10/15 11:29 AM

Did you find a way to get it work? smile
Posted By: FluffehKitteh

Re: [Twitch] timing out things that contains a word? - 29/10/15 09:11 PM

not really i gave up after a few days :P
Posted By: acpixel

Re: [Twitch] timing out things that contains a word? - 28/11/15 10:37 PM

This should work if i understood the question
Code:
on *:text:*:#: {
if (.apo.af isin $1-) {
  Msg # /timeout $nick 1
  Msg # Don't click this link, its a virus. 
}
}
© 2020 mIRC Discussion Forums