CS Auto Lists Bot Commands

By AlienDK on Aug 22, 2008

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

Comments

Sign in to comment.
Cheiron   -  Aug 24, 2008

gotcha. thanks for the edit there though

 Respond  
AlienDK   -  Aug 22, 2008

Originally I made this script when I was a newb. And I saw a script made by someone else where he used on :TEXT:!command*:#: {. And then I just forgot to update it after I found how to do it in a smarter way :P

 Respond  
Cheiron   -  Aug 22, 2008

ah yeah.. i see your point.. lemme check one my snippets a sec

on :TEXT:!setup:: {

yeah.. you got it right there paul... now that makes it curious now as to why he done it the way he has..

 Respond  
Paul_1337noob   -  Aug 22, 2008

i see were your coming from but what i meant was the wildcard eg !vopadd

!vopadd* should be fine right

 Respond  
Cheiron   -  Aug 22, 2008

the on 100 looks like he is using ACCESS over chanserv. rather than 0, 1, 3, 4, 5, 9, founder... he has gone for the big numbers. same thing basically paul

 Respond  
Paul_1337noob   -  Aug 22, 2008

works from what ive seen,
as for the msg $chan you could have it notice the the user who was adding/removing and the person who was been added/removed.

gj Chris

any reason for using on 100:TEXT:!....: ?

 Respond  
Cheiron   -  Aug 22, 2008

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

 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.