Just place it in your bots remotes.
and set your self as auser level 5 or higher.
on $5:text:/^!mute\b/Si:*:{
tokenize 32 $strip($1-)
if ($address($2,2)) {
.mode $chan +bb ~q: $+ $v1 ~n: $+ $v1
else msg $chan No address found for $2 $+ .
.mode $chan -aohv $2 $2 $2 $2
.msg $chan 04 $+ $nick Just Muted You For: $iif($3,$3-,Blatent Retardation.)
}
}
on $5:text:/^!unmute\b/Si:*:{
tokenize 32 $strip($1-)
if ($address($2,2)) { mode $chan -bb ~q: $+ $v1 ~n: $+ $v1
else msg $chan 04No address found for $2 $+ .
.mode $chan +v $2
.msg $chan $2 $+ , you have been unmuted, please do not annoy anyone else, or you will be banned.
}
}
you dont need to use "tokenize 32 $strip($1-)" if you are stripping the color out in the regex.
also whynot put them under 1 on text event. here's just an example
on $5:text:/^(!mute|!unmute)\b/Si:#:{
if ($2 != $me && $2 ison #) {
if ($regml(1) == !mute && $address($2,2)) {
mode # +bb-aohv ~q: $+ $v1 ~n: $+ $v1 $str($2 $chr(32),4)
msg # 04 $+ $nick Just Muted You For: $iif($3,$3-,Blatent Retardation.)
}
if ($regml(1) == !unmute && $address($2,2)) {
mode # -bb+v ~q: $+ $v1 ~n: $+ $v1 $2
msg # $2 $+ , you have been unmuted, please do not annoy anyone else, or you will be banned.
}
}
}
The seconds one will not work as you have it using * as the basis for the comparison before it goes into the event. Merge them as below and they will work.
on 5:text:*:#: {
tokenize 32 $strip($1-)
if ($1 == !mute) {
if ($address($2,2)) mode $chan +bb ~q: $+ $v1 ~n: $+ $v1
else msg $chan No address found for $2 $+ .
mode $chan -aohv $2 $2 $2 $2
msg $chan $2 Just Muted You For Reason: $iif($3,$3-,Blatent Retardation.)
}
if ($1 == !unmute) {
if ($address($2,2)) mode $chan -bb ~q: $+ $v1 ~n: $+ $v11
else msg $chan No address found for $2 $+ .
mode $chan +v $2
msg $chan You have been unmuted... That was your only warning.. Do not annoy me again or you will be banned.
}
}
Why are you /tokenize 'ing in the first place there is no need ,also why not $Strip($1) and allow the use of color commands, and maybe auto set the user level and to your main none bot nick and also add a on NICK event so you can keep you in command even on away's or afk nicks or just feckin around ,and make sure if you do something like that you ruser the temp nick.And maybe expand a little more i know ircD servers have tons of crap you can do so maybe add more commands.Good work tho.`-.-´