mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
F
FluffehKitteh
FluffehKitteh
F
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.

M
MattiSony
MattiSony
M
Try to take away the . in front of apo.af

F
FluffehKitteh
FluffehKitteh
F

S
Sakana
Sakana
S
Try this

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

Last edited by Sakana; 08/08/15 03:33 AM.
F
FluffehKitteh
FluffehKitteh
F
same thing frown

S
Sakana
Sakana
S
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

K
keyeslol
keyeslol
K
Try this:

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

Last edited by keyeslol; 08/08/15 04:36 PM.
F
FluffehKitteh
FluffehKitteh
F
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

F
FluffehKitteh
FluffehKitteh
F
same thing above

K
keyeslol
keyeslol
K
I just tried it, and it worked for me.

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

S
Sakana
Sakana
S
put it in an empty script file

F
FluffehKitteh
FluffehKitteh
F
I have but still doesn't work.

S
Sakana
Sakana
S
Uhm, try typing in /remote on
If it still doesn't work I duno what's wrong, maybe try reinstalling

F
FluffehKitteh
FluffehKitteh
F
tried reinstalling as well and still isn't working frown if anyone else has any suggestions it would be much appreciated

S
Sakana
Sakana
S
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
}
}

K
Khonor
Khonor
K

F
FluffehKitteh
FluffehKitteh
F
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.

K
keyeslol
keyeslol
K
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.

N
Nordy
Nordy
N
Did you find a way to get it work? smile

Page 1 of 2 1 2

Link Copied to Clipboard