Nick Alert

By Stewie1k94 on Jul 16, 2011

simply place in remotes and type /alerts on

and when someone says your name ina scentence a dialog will open and tell you the channel the nick and the message

alias alerts {
  if ($1) {
    if ($1 == on) {
      echo -a 3Dialog boxes for nick alerts are now turned on.
      set %alert on
    }
    if ($1 == off) {
      echo -a 3Dialog boxes for nick alerts are now turned off.
      set %alert off
    }
  }
}

dialog alert {
  title "Nick Alerts"
  size -1 -1 140 120
  option dbu
  menu "&options", 100,
  item "&exit", 200, cancel
  box "Nick Alert", 7, 5 5 130 110,
  text "Channel:", 1, 8 14 25 10,
  text "channel:", 2, 30 14 45 10,
  text "Nick:", 3, 8 28 25 10,
  text "nick:", 4, 20 28 45 10,
  text "Message:", 5, 8 45 35 10,
  text "message:", 6, 32 45 80 110,
}

on *:TEXT:*your nick here*:#:{
  if (%alert == on) {
    dialog -mt alert alert
    did -o alert 2 1 $chan
  }
  if ($1-) {
    did -o alert 6 1 $1-
  }
  did -o alert 4 1 $nick
}

Comments

Sign in to comment.
Stewie1k94   -  Jul 18, 2011

lmao

 Respond  
Chaosknight53   -  Jul 18, 2011

look what I found on hawkee.....

 Respond  
Stewie1k94   -  Jul 16, 2011

ok cool

 Respond  
blackvenomm666   -  Jul 16, 2011

here is how mine is set up. it is set to use the nick your on and a second nick or your real name via regex

on $*:text:$(/\b( $+ $me $+ |Ryan)\b/iS):#:{

you can change ryan to anything you want.

 Respond  
_Dean_   -  Jul 16, 2011

i dont think its necessary to make a on text event like this:

on *:TEXT:*your nick here*:#:{

you can set the use of identifier $me which will return the nickname of the person who is running

an example is use $istok like

if ($istok($strip($1-),$me,32)) 

which is simple, but if you want to use $regex

if $regex($1-,/( |^)\Q $+ $me $+ \E( |$)/iS) 

the alias alerts could be shorter than that

alias alerts {
  echo -a 3Dialog boxes for nick alerts are now turned $iif($$1 == on, on.,off)
  set %alert $iif($$1 == on,on,off)
}
 Respond  
Stewie1k94   -  Jul 16, 2011

where it has this:

on *:TEXT:*your nick here*:#:{

put your nick in

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.