mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2014
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Oct 2014
Posts: 8
So I have a anti-link script for my twitch bot

on *:text:*.com*:#:{
if ($read(reglist.txt,nw,$nick)) return
Msg # .timeout $nick 1
Msg # Stop posting links!
}
and it works for timing people out that post links but, it also gives the message to my moderators while not timing them out. I was wondering if there was any way to add a command to allow mods to post links without the bot saying "stop posting links"
Thanks for all help in advance.

Last edited by mrbupafy; 28/02/15 08:13 PM.
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
/help if then else
read this ^


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Oct 2014
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Oct 2014
Posts: 8
where in the command do i add that?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
type it into your editbox (where you type your text in mIRC) and a window will pop up with helpful information.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Oct 2014
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Oct 2014
Posts: 8
For some reason it doesnt work

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try use this code:

To add an new moderator just use from your bot editbox: /write reglist.txt <NICKNAME>

e.g: /write reglist.txt westor

Code:
alias url_pattern { return m@(?:^| )((?:(?:https?|ircs?)://)?(?:(?:[-\w]+\.)+)[-\w]+(?:\d+)?(?:/(?:[-a-zA-Z;/\d#:?=&,_+]*))?)@ig } ; by Wims
alias isurl { ; by Wims
  noop $regex(isurl,$1-,$url_pattern)
  if ($prop == all) {
    var %a 1,%url
    while ($regml(isurl,%a) != $null) {
      %url = %url $v1
      inc %a
    }
    return $iif(%url,%url,0)
  }
  return $iif($prop isnum 0-,$regml(isurl,$prop),$iif($regml(isurl,0),$true,$false))
}

on *:text:*:#:{
  if ($isurl($1-)) {
    if ($read(reglist.txt,nw,$nick)) return
    Msg # .timeout $nick 1
    Msg # Stop posting links!
  }
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard