Auto De voice and Voice

By PyThOn on Jul 09, 2011

Add this script into your bot. File-Remote-New
Ok, here is a voice script i threw together.
The bot must be A room Mod. Or Even Admin.
This script is very simple.
When a user joins, They are Auto Voiced, The Bot then should say, "Dont want auto voice? Type -v If you want voice Type +v."
The user then can choose -v And it will de voice them.
If the user types +v it will voice them.
Simple Easy Script.
Rate it. (:
Also on the Join msg you can add What ever you like.

;Made by PyThOn
on !*:join:#: { /mode $chan +v $nick } { /msg $chan 12Dont want auto voice? Type -v If you want voice Type +v. }
On *:Text:*:#:{
  If ($strip($1) == +v) { Mode $Chan +v $Nick }
  If ($Strip($1) == -v) { Mode $Chan -v $Nick }
}

Comments

Sign in to comment.
napa182   -  Jul 09, 2011

there are many ways to go about this kind of snippet, and what i meant by "No need to edit it unless you know how it works tbh..
is understanding why it works, but whatever...

 Respond  
PyThOn   -  Jul 09, 2011

Thanks Derek aka D34th i think that your name.
And thanks Napa182.

 Respond  
napa182   -  Jul 09, 2011

you should have it make sure what client is running it is at lest +o also you should really set a channel to use this on but whatever...
also if the server runs anope you could have the chan set to auto voice on join.

you could do:

on !@*:join:#: { 
  mode # +v $nick 
  msg # 12Dont want auto voice? Type -v  If you want voice Type +v 
}
on $@*:TEXT:/^([+-]v)$/S:#: {
  mode # $regml(1) $nick 
  msg # 12You now have been $iif($regml(1) = -v,de) voice. 
}

but to each their own.....

 Respond  
D34th   -  Jul 09, 2011

Why not combine the -v and +v commands into a single text event

On *:Text:*:#:{
  If ($strip($1) == +v) { Mode $Chan +v $Nick }
  If ($Strip($1) == -v) { Mode $Chan -v $Nick }
}

A little bit cleaner like that.

 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.