Bot PM Owner on nick mention

By theholder on May 24, 2010

This simple script is to be added to a mirc bot to pm the owner of the bot when the owners name is mentioned in a channel.

Replace BOTOWNERNICK with your nick

with thanks to cooldude13233

====ORGINIAL=======
ON *:TEXT:BOTOWNERNICK*:#: {
  timer 1 1 msg $chan $nick $+ , i'll get him for you.
  timer 1 2 query BOTOWNERNICK $nick wants you on $chan $+ .
}

===Updated====
alias setowner {
  set %owner $$?"What is your owner nick?"
  echo -a * Your owner nick has been set to $+(",$!,") successfully!
}
on *:text:$($+(*,%owner,*)):#:{
  if (!%f) {
    inc -u3 %f
    msg # $nick $+ , i'll get him for you.
    query %owner $nick wants you on # $+ .
  }
}

Comments

Sign in to comment.
theholder   -  May 24, 2010

@Jethro_

Thanks for your help its nice.. thank you

 Respond  
Jethro   -  May 24, 2010

Instead of getting your owner nick hardcoded, you can use a variable for that, along with an alias to set it:

alias setowner { 
  set %owner $$?"What is your owner nick?"
  echo -a * Your owner nick has been set to $+(",$!,") successfully! 
}
on *:text:$($+(*,%owner,*)):#:{
  if (!%f) {
    inc -u3 %f
    msg # $nick $+ , i'll get him for you.
    query %owner $nick wants you on # $+ .
  }
}

And for two lines of message, the use of timer isn't necessary but a trigger control.

 Respond  
Jude   -  May 24, 2010

Nice script. easy but yet effective. great if you don't have a highlight script. or if you are not looking on that network.

 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.