mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
[Twitch] timing out things that contains a word? #254362 06/08/15 11:11 PM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
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.

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254363 07/08/15 01:40 AM
Joined: Oct 2014
Posts: 35
M
MattiSony Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
Try to take away the . in front of apo.af


Matti
Re: [Twitch] timing out things that contains a word? [Re: MattiSony] #254382 08/08/15 12:39 AM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254383 08/08/15 02:56 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Try this

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

Last edited by Sakana; 08/08/15 03:33 AM.
Re: [Twitch] timing out things that contains a word? [Re: Sakana] #254384 08/08/15 03:45 AM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
same thing frown

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254386 08/08/15 02:20 PM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
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

Re: [Twitch] timing out things that contains a word? [Re: Sakana] #254389 08/08/15 04:36 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
Try this:

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

Last edited by keyeslol; 08/08/15 04:36 PM.

twitter @keyeslol
Re: [Twitch] timing out things that contains a word? [Re: Sakana] #254390 08/08/15 04:51 PM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
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

Re: [Twitch] timing out things that contains a word? [Re: keyeslol] #254391 08/08/15 04:52 PM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
same thing above

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254393 08/08/15 04:57 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
I just tried it, and it worked for me.


twitter @keyeslol
Re: [Twitch] timing out things that contains a word? [Re: keyeslol] #254398 09/08/15 12:18 AM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
Is something wrong here for me? http://i.imgur.com/nAoFvkL.png
I did it exactly how yours is, but still doesn't timeout.

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254401 09/08/15 01:06 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
put it in an empty script file

Re: [Twitch] timing out things that contains a word? [Re: Sakana] #254406 09/08/15 04:07 AM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
I have but still doesn't work.

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254407 09/08/15 04:15 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Uhm, try typing in /remote on
If it still doesn't work I duno what's wrong, maybe try reinstalling

Re: [Twitch] timing out things that contains a word? [Re: Sakana] #254417 09/08/15 10:58 PM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
tried reinstalling as well and still isn't working frown if anyone else has any suggestions it would be much appreciated

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254426 10/08/15 08:26 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
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
}
}

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254442 11/08/15 12:30 AM
Joined: Jun 2014
Posts: 77
K
Khonor Offline
Babel fish
Offline
Babel fish
K
Joined: Jun 2014
Posts: 77

Re: [Twitch] timing out things that contains a word? [Re: Sakana] #254470 12/08/15 02:16 AM
Joined: Jul 2015
Posts: 19
F
FluffehKitteh Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
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.

Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #254590 18/08/15 10:55 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
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.


twitter @keyeslol
Re: [Twitch] timing out things that contains a word? [Re: FluffehKitteh] #255490 28/10/15 11:29 AM
Joined: Sep 2015
Posts: 8
N
Nordy Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
N
Joined: Sep 2015
Posts: 8
Did you find a way to get it work? smile

Page 1 of 2 1 2