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 # $+ .
}
}
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.