Bot Script

By DragonFlare on Sep 03, 2008

This Is For Use on a bot i was bored and decided to make it :D

on *:Text:*:#:{
  if ($me isop $chan) {
    if ($nick isop $chan) {
      if ($1 == !hopadd) {
        Chanserv hop $chan Add $2-
        onotice $chan $nick Has Added $2- To The HOPList
      }
      if ($1 == !hopdel) {
        Chanserv hop $chan del $2-
        onotice $chan $nick Has Removed $2- From The HOPList
      }
      if ($1 == !aopadd) {
        Chanserv aop $chan add $2-
        onotice $chan $nick Has Added $2- To The AOPList
      }
      if ($1 == !aopdel) {
        Chanserv aop $chan del $2-
        onotice $chan $nick Has Deleted $2- From The AOPList
      }
      if ($1 == !vopadd) {
        Chanserv vop $chan add $2-
        onotice $chan $nick Has Added $2- To The VOPList
      }
      if ($1 == !vopdel) {
        Chanserv vop $chan del $2-
        onotice $nick Deleted $2- From The VOPList
      }
      if ($1 == !Temphop) {
        mode $chan +h $2-
        onotice $chan $nick Has Given $2- Temporary Halfop Operator Status
      }
      if ($1 == !Detemphop) {
        mode $chan -h $2-
        onotice $chan $nick Has Revoked $2- 's Temporary Halfop Operator Status 
      }
      if ($1 == !Tempaop) {
        mode $chan +o $2-
        onotice $chan $nick Has Given $2- Temporary Operator Status
      }
      if ($1 == !Detempaop) {
        mode $chan -o $2-
        onotice $chan $nick Has Revoked $2- 's Temporary Operator Status
      }
      if ($1 == !commands) {
        msg $chan These Commands Are For Operators Only
        msg $chan Commands Are : !HopAdd !HopDel !AopAdd !AopDel !VopAdd !VopDel !TempHop !DeTempHop !TempAop !DeTempAop
        msg $chan These Commands Are Not To Be Used By +v Users If They Are The User Who Tried To Use Them Will Be Kicked Or Banned.  
      }
    }
  }
}

This is a remake of the script for people who use the ACCESS feature on the server because some servers ony use the ACCESS feature to so heres the script for the ACCESS feature.

on *:Text:*:#:{
  if ($me isop $chan) {
    if ($nick isop $chan) {
      if ($1 == !hopadd) {
        Chanserv access $chan add $2- 4
        onotice $chan $nick Has Added $2- To The HOPList
      }
      if ($1 == !hopdel) {
        Chanserv access $chan del $2-
        onotice $chan $nick Has Removed $2- From The HOPList
      }
      if ($1 == !aopadd) {
        Chanserv access $chan add $2- 5
        onotice $chan $nick Has Added $2- To The AOPList
      }
      if ($1 == !aopdel) {
        Chanserv access $chan del $2-
        onotice $chan $nick Has Deleted $2- From The AOPList
      }
      if ($1 == !vopadd) {
        Chanserv access $chan add $2-
        onotice $chan $nick Has Added $2- To The VOPList
      }
      if ($1 == !vopdel) {
        Chanserv access $chan del $2-
        onotice $nick Deleted $2- From The VOPList
      }
      if ($1 == !Temphop) {
        mode $chan +h $2-
        onotice $chan $nick Has Given $2- Temporary Halfop Operator Status
      }
      if ($1 == !Detemphop) {
        mode $chan -h $2-
        onotice $chan $nick Has Revoked $2- 's Temporary Halfop Operator Status 
      }
      if ($1 == !Tempaop) {
        mode $chan +o $2-
        onotice $chan $nick Has Given $2- Temporary Operator Status
      }
      if ($1 == !Detempaop) {
        mode $chan -o $2-
        onotice $chan $nick Has Revoked $2- 's Temporary Operator Status
      }
      if ($1 == !commands) {
        msg $chan These Commands Are For Operators Only
        msg $chan Commands Are : !HopAdd !HopDel !AopAdd !AopDel !VopAdd !VopDel !TempHop !DeTempHop !TempAop !DeTempAop
        msg $chan These Commands Are Not To Be Used By +v Users If They Are The User Who Tried To Use Them Will Be Kicked Or Banned.  
      }
    }
  }
}

Comments

Sign in to comment.
DragonFlare   -  Oct 23, 2008

Bullet that is why i have

 if ($nick isop $chan) { 

in there so only ops can use it

 Respond  
Bullet_Dodger   -  Sep 28, 2008

You could do if

($istok(Nicks-You-Want-To-Use-It-Here,$nick,32)) { }

to stop everyone u dont want to using it but its just a suggestion

 Respond  
napa182   -  Sep 09, 2008

you can cut it down abit

on @*:Text:*:#:{
  if ($nick isop $chan) {
    if ($1 == !hopadd || $1 == !hopdel) { $iif($1 == !hopadd,.cs access $chan add $2 4,.cs access $chan del $2) | $iif($1 == !hopdel,.onotice $chan $nick Has Removed $2 From The HOPList,.onotice $chan $nick Has Added $2 To The HOPList) }
    if ($1 == !aopadd || $1 == !aopdel) { $iif($1 == !aopadd,.cs access $chan add $2 5,.cs access $chan del $2) | $iif($1 == !aopdel,.onotice $chan $nick Has Deleted $2 From The AOPList,.onotice $chan $nick Has Added $2 To The AOPList) }
    if ($1 == !vopadd || $1 == !vopdel) { $iif($1 == !vopadd,.cs access $chan add $2,.cs access $chan del $2) | $iif($1 == !vopdel,.onotice $nick Deleted $2 From The VOPList,.onotice $chan $nick Has Added $2 To The VOPList) }
    if ($1 == !Temphop || $1 == !Detemphop) { $iif($1 == !Temphop,mode $chan +h $2,mode $chan -h $2-) | $iif($1 == !Detemphop,.onotice $chan $nick Has Revoked $2 $+ 's Temporary Halfop Operator Status,.onotice $chan $nick Has Given $2 Temporary Halfop Operator Status) }
    if ($1 == !Tempaop || $1 == !Detempaop) { $iif($1 == !Tempaop,mode $chan +o $2,mode $chan -o $2) | $iif($1 == !Detempaop,.onotice $chan $nick Has Revoked $2 $+ 's Temporary Operator Status,.onotice $chan $nick Has Given $2 Temporary Operator Status) }
    if ($1 == !commands) { .notice $nick These Commands Are For Operators Only | .notice $nick Commands Are : !HopAdd !HopDel !AopAdd !AopDel !VopAdd !VopDel !TempHop !DeTempHop !TempAop !DeTempAop }
  }
}
 Respond  
DragonFlare   -  Sep 09, 2008

As you can see Akishoot, Napa182 i updated it dramatically for people to select which type they want for servers that use ACCESS or for servers that use xOP personally i prefer ACCESS over xOP Because you can chose what lvl you want users to be on ACCESS on xOP you can only set lvls 3 = Vop 4 = Hop 5 = Aop 10 = Sop thats why i dislike the xOP system and on ACCESS you can set more lvls with ACCESS it goes from 3 - 9999 which is so you can set lvls for the akick and other shit anyways... if you want you can get on msn now Akishoot im on there my nick on msn is Eternal now i switched it cause i got real tired of halo_god_master but my email is still halo_god_master@hotmail.com so ill probally be on all night lmao so feel free to get on and give me a nudge you can to Napa182 that is if you have msn Napa and tell me if you like the script so far Napa182 and Akishoot. and i havent heard from typo in a long time hows he doing Napa182

 Respond  
DragonFlare   -  Sep 03, 2008

Thanks Napa182 its fixed

 Respond  
napa182   -  Sep 03, 2008

why dont you just update one of ur many bot scripts rather then posting another one ffs
take out this line

if ($me ISOP $chan) {

the on ur on text do it like this

on @*:Text:*:#:{
 Respond  
DragonFlare   -  Sep 03, 2008

Alright, Sounds good Chris.

 Respond  
Akishoot   -  Sep 03, 2008

Your e-mail tells it all. Let's not talk in a snippet discussion about ourselves. I'll contact you on MSN sometime. I'm in the middle of class right now.

 Respond  
DragonFlare   -  Sep 03, 2008

So how did you find out Chris
<.<

.>

And how have you been?

 Respond  
Akishoot   -  Sep 03, 2008

Oh my God, that's you Eternal? I had no clue.

 Respond  
DragonFlare   -  Sep 03, 2008

Thanks EL

and

it was a Typo Eugenio Acually i dont know why i posted that comment didnt change it any :/

 Respond  
Eugenio   -  Sep 03, 2008

rofl issop = is sop in a chan ? ;s
or wtf is issop
/me has gone crosseyed

 Respond  
EL   -  Sep 03, 2008

its ISOP

 Respond  
DragonFlare   -  Sep 03, 2008

Hmm you are right i should change that to

 If ($me issop $chan) { 

and

 if ($nick issop $chan) { 
 Respond  
Akishoot   -  Sep 03, 2008

Yes, but you only have it to check if they are an operator in the room. The operator may be a temporary operator so temporary operators could be adding themselves to the access list.

 Respond  
DragonFlare   -  Sep 03, 2008

access lvl 9 can Chris

 Respond  
Akishoot   -  Sep 03, 2008

Yes, to be on the safe side, I'd make it "/msg ChanServ" instead of "/cs".

Also, having both methods of adding someone as an operator in the same script is not a good idea, seeing as ChanServ will yell at you.

Another thing, I'm not quite sure an operator can add another operator permanently.

 Respond  
Jonesy44   -  Sep 03, 2008

1: Might as well use /mode for all sections

2: Make sure the "cs" alias is supplied. some server's don't support it. (To do with the ircD configuration)

 Respond  
DragonFlare   -  Sep 03, 2008

Fixed Akishoot AKA Chris
<.<

.>

 Respond  
Akishoot   -  Sep 03, 2008

The only problem I see with this is the fact that not all chatrooms use the XOp method... A majority of the rooms I'm in use the ACCESS method.

 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.