Jump to content

Second [req] Code


Me Hotur Not

Recommended Posts

Sorry to be a pain :(

 

How would I do this.

 

I have several punishments on my channel for disruptive members such as mutes. I want to do the following.

 

If <nick> enters #chan -v them, and if someone +v them, i want my bot to -v them and say in the whole channel, <nick> has been muted temporarily from a recieved abuse report. Do not Voice them!

Link to comment
Share on other sites

Sorry to be a pain :(

 

How would I do this.

 

I have several punishments on my channel for disruptive members such as mutes. I want to do the following.

 

If <nick> enters #chan -v them, and if someone +v them, i want my bot to -v them and say in the whole channel, <nick> has been muted temporarily from a recieved abuse report. Do not Voice them!

 

been a while since I made any scripts and not tested but this should work:

 

on *:join:#: {

if ($nick != $me) {

if ($nick isvoice $chan) { mode $chan -v $nick }

}

}

 

on *:voice:#: {

if ($nick == $me) { halt }

mode $chan -v $nick

msg $chan $nick has been muted temporarily from a received abuse report. Do not Voice them!

}

 

someone please correct me if Im wrong.

Link to comment
Share on other sites

  • 1 month later...

it's not wrong, but no need for:- " if ($nick != $me) { "

 

on *!@:JOIN:#:{ if ($nick isvoice #) { .raw mode # -v $nick } }

on *!@:VOICE:#:{ 
  .raw mode # -v $nick
  msg # $nick has been muted, please contact $mnick for more information. 
}

 

putting the !@ is like having

 

on *:JOIN:#:{
  if ($mnick isop #) && ($nick != $mnick) { }
}

 

hope this helps :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...