This code is used to add people to the cs auto lists (vop, hop, aop, sop) with a simple command instead of doing the long /cs AOP blahblahblah
THIS SCRIPT IS MADE FOR DREAMBOT 5.4 wich can be found at http://www.team-clanx.org/get.php?check=3&id=49
Commands: !vopadd , !remvop , !hopadd , !remhop , !aopadd , !remaop , !sopadd , !remsop
v1.1: Removed the unneeded wildcard, made it notice the one that gets added/removed instead of sending the message to the channel.
;@@@ Script by: Christoffer G. Thomsen
;@@@ Made for DreamBot v5.4
;@@@ Please do not take credit for this script
;@@@ v1.1
on 400:TEXT:!aopadd*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !aopadd <nickname>
}
else {
ChanServ AOP $chan ADD $2
mode # +o $2
notice $2 I have added you to the AOP list
}
}
on 400:TEXT:!remaop*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !remaop <nickname>
}
else {
ChanServ AOP $chan DEL $2
mode # -o $2
notice $2 I have removed you from the AOP list
}
}
on 100:TEXT:!hopadd*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !hopadd <nickname>
}
else {
ChanServ HOP $chan ADD $2
mode # +h $2
notice $2 I have added you to the HOP list
}
}
on 100:TEXT:!remhop*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !remhop <nickname>
}
else {
ChanServ HOP $chan DEL $2
mode # -h $2
notice $2 I have removed you from the HOP list
}
}
on 100:TEXT:!vopadd*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !vopadd <nickname>
}
else {
ChanServ VOP $chan ADD $2
mode # +v $2
notice $2 I have added you to the VOP list
}
}
on 100:TEXT:!remvop*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !remvop <nickname>
}
else {
ChanServ VOP $chan DEL $2
mode # -v $2
notice $2 I have removed you from the VOP list
}
}
on 400:TEXT:!sopadd*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !sopadd <nickname>
}
else {
ChanServ SOP $chan ADD $2
mode # +a $2
notice $2 I have added you to the SOP list
}
}
on 400:TEXT:!remsop*:#: {
if ( $2 == $null ) {
notice $nick Syntax: !remsop <nickname>
}
else {
ChanServ SOP $chan DEL $2
mode # -a $2
notice $2 I have removed you from the SOP list
}
}
looks clean enough.. might want to back the trigger commands shorter though heh.. !hoppadd to !hadd or something shorter.. just to save the weary fingers and stuff..
only other stuff as a positive comment here... maybe instead of messaging the whole channel that you have added/removed a user, change it to echo -a so only you can see it, it the bot is on your pc that is....
will have a better look laters :) gets an initial 5