mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Joined: Jul 2015
Posts: 19
F
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.

Joined: Oct 2014
Posts: 35
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
Try to take away the . in front of apo.af


Matti
Joined: Jul 2015
Posts: 19
F
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19

Joined: Sep 2014
Posts: 259
S
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.
Joined: Jul 2015
Posts: 19
F
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
same thing frown

Joined: Sep 2014
Posts: 259
S
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

Joined: May 2015
Posts: 133
K
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
Joined: Jul 2015
Posts: 19
F
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

Joined: Jul 2015
Posts: 19
F
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
same thing above

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
I just tried it, and it worked for me.


twitter @keyeslol
Joined: Jul 2015
Posts: 19
F
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.

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
put it in an empty script file

Joined: Jul 2015
Posts: 19
F
Pikka bird
OP Offline
Pikka bird
F
Joined: Jul 2015
Posts: 19
I have but still doesn't work.

Joined: Sep 2014
Posts: 259
S
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

Joined: Jul 2015
Posts: 19
F
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

Joined: Sep 2014
Posts: 259
S
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
}
}

Joined: Jun 2014
Posts: 77
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2014
Posts: 77

Joined: Jul 2015
Posts: 19
F
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.

Joined: May 2015
Posts: 133
K
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
Joined: Sep 2015
Posts: 8
N
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

Link Copied to Clipboard