bot mute script

By a careful warchild on Oct 04, 2008

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.
  }
}

Comments

Sign in to comment.
napa182   -  Apr 03, 2009

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.
    }
  }
}
 Respond  
a careful warchild   -  Apr 03, 2009

Updated, finally works now, sorry for my ignorancy over this long and laborious time. But there you go :)

 Respond  
a careful warchild   -  Nov 24, 2008

no, i saw him use the $iif command, but i just thought of making one, i took his idea about the default reason tho.

 Respond  
Bullet_Dodger   -  Nov 24, 2008

Just a question.. Did you base this on Fans mute script ?

 Respond  
a careful warchild   -  Nov 03, 2008

imrac: well this version, for me works fine, i have taken out the tokenize 32 on mine and editted it to if ($strip($1) == !mute) { ect ect
but apart from that it works fine 0.o

 Respond  
Scakk   -  Nov 03, 2008

points at his remake up a few post from October

 Respond  
Jace   -  Nov 02, 2008

And why do you have 2 separate on text events?.

 Respond  
TheImrac   -  Nov 02, 2008

How about you take a gander at the code up top. Maybe you have updated your version since then, but just glancing at the code you are missing bracket(s).

 Respond  
a careful warchild   -  Nov 02, 2008

TheImrac, it works perfectly fine for me....

 Respond  
napa182   -  Nov 01, 2008

^^5

 Respond  
TheImrac   -  Nov 01, 2008

SMH... Bullet_dodger you scrub... Stop giving people rim jobs with your ratings and +likes... This script [size=18]doesn't even work[/size] and you give it a 9? I mean come on.

 Respond  
Bullet_Dodger   -  Nov 01, 2008

9/10

 Respond  
a careful warchild   -  Oct 04, 2008

i tried that, and it didn't work >.<

 Respond  
Scakk   -  Oct 04, 2008

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.
  }
}
 Respond  
a careful warchild   -  Oct 04, 2008

added gummo, and gummo when i close the brackets on the first on :text::#: it seems to stop working >.<

 Respond  
Gummo   -  Oct 04, 2008

You're missing the closing bracket for the first on text event.
Also:

mode $chan +b ~q: $+ $v1 | mode $chan +b ~n: $+ $v1

Can be:

mode $chan +bb ~q: $+ $v1 ~n: $+ $v1

Etc.

 Respond  
EL   -  Oct 04, 2008

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.`-.-´

 Respond  
a careful warchild   -  Oct 04, 2008

added.

 Respond  
Bullet_Dodger   -  Oct 04, 2008

I know but,
When i mute people they change there nick to {{Dont_Mute_Me}}
ect

 Respond  
a careful warchild   -  Oct 04, 2008

nickname wont affect the mute ban, as it bans the hostmask not the nick ;)

 Respond  
Bullet_Dodger   -  Oct 04, 2008

Also add ~n so no nickname changes
6/10 Good Script ;P

 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.