Commands Script (v7.5)

By Bluepower10 on Jan 17, 2009

This is a very simple script that I made. It was not ripped RIPS!
It includes many op comamnds and user commands to make it easier to have control of your channel. It can also register new channels for you.

You can edit this script as you like as long as you leave everything the same at the top.

Some more things are in this script that may not be listed.

Fixed bugs: No bugs were needed to be fixed in this version.

Bugs: No bugs found in new version.
Coming soon: I am working on a way to message a user if they mess up a command.

Version 4 and above modified by Aucun50.

############################################################################################################
#;This snippet is made by Bluepower10 Productions at http://bluepower10.webs.com/ .                        #
#;DO NOT REMOVE THIS!! Feel free to edit add, or delete anything below, but do not edit anything up here.  #
#;To get help on this script, please contact me at: MSN: bluepower10@clubpenguinhq.com, AIM: Bluepower1000,# 
#;EMAIL: bluepower10_productions@live.com, IRC: irc.clubpenguinhq.com #no_rules. Have fun! 1st             #
#;script by Bluepower10. Also visit http://koolbots.izfree.com/. You are using version 7.5 of this script. #
#;Please make sure you are using current version.                                                          #
############################################################################################################

on *:TEXT:*:#: {
  if (!ban == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan +b $2-
    }
  }
  if (!mode == $strip($1)) && ($strip($2)) && ($strip($3)) {
    if ($nick isop $chan) {
      mode $chan $2 $3
    }
    else { msg $chan You're not oped on this channel. }
  }
  if (!voice == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan +v $2-
    }
    elseif (!$2) { msg $chan No nick entered }
    else { msg $nick You're not oped on this channel. }
  }
  if (!devoice == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan -v $2-
    }
    elseif (!$2) { msg $chan No nick entered }
    else { .notice $nick You're not oped on this channel. }
  }
  if (!unban == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan -b $2-
    }
    elseif (!$2) { msg $nick No nick entered. Try again. }
    else { .notice $nick You're not oped on this channel. }
  }
  if (!commands == $strip($1)) {
    .notice $nick Regular commands for this bot are: !commands, !site, !info, !time, !invite < username > and !pm < username >.
  }
  if (!topic == $strip($1)) && ($strip($2-)) {
    if ($nick isop $chan) {
      topic $chan $2-
    }
    else { .notice $nick You're not oped on this channel. }
  }
  if (!site == $strip($1)) {
    msg $chan Come visit us at http://www.bluepower10.webs.com/ and http://koolbots.izfree.com/.
  }
  if (!info == $strip($1)) {
    msg $chan Bot made by Bluepower10. Bluepower10 Productions owns this bot at http://bluepower10.webs.com/ and http://koolbots.izfree.com/ .
  }
  if (!kick == $strip($1)) && ($strip($2)) && ($strip($3-)) {
    if ($nick isop $chan) {
      kick $chan $2-
      .notice $2 You where kicked by: $nick at $time on $date for $3- $+ .
    }
    elseif (!$2) { msg $nick No nick entered. Try again. }
    elseif ($2 !ison $chan) { msg $nick $2 is not in this channel }
    else { msg $nick You're not oped on this channel. }
  }
  if (!pm == $strip($1)) && ($strip($2)) {
    if ($2 ison $chan) {
      .notice $2 Hello $2! I was asked to PM you. How are you doing today?
    }
    else { .notice $nick Their not in this channel. }
  }
  if (!opc == $strip($1)) {
    if ($nick isop $chan) {
      .notice $nick Op commands are: !ban < username >, !unban < username >, !kick < username >, !+m, !im, !+i, !-i, !voice < username >, !devoice < username >, and !topic. Note: These commands only work for ops and if I am oped.
    }
    else { .notice $nick You need to be oped to see these commands. }
  }
  if (!Time == $strip($1)) {
    .notice $nick The time is $time and the date is $date $+ .
  }
  if (!invite == $strip($1)) && ($strip($2)) {
    invite $2- $chan
  }
  if (!register == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      join $2
      mode $chan +o $nick
      msg $chan To register type /cs register (Channel) (Password) (Description), good luck!
      part $2
      elseif (!$2) { .notice $nick No channel entered }
      elseif ($2) ($3) { .notice To much info given try: !register (Channel) }
      else { halt }
    }
  }
}
on *JOIN:#: {
  .notice $nick Welcome to $chan $+ ! For a list of commands, type !commands.  For op commands, type !opc.
}

Comments

Sign in to comment.
PATX   -  May 04, 2009

good point alch3my!

 Respond  
alch3my   -  Apr 23, 2009

I've seen worse coding, yours isn't much better Linuxuser <_<

 Respond  
Linuxuser   -  Apr 10, 2009

i agree the coding is horrible and over the top but 'if' it works then good

 Respond  
Slickone   -  Mar 14, 2009

sorry to say that this is coded horribly, but il be nice and give it a score of 3/10 for effort.

 Respond  
PATX   -  Mar 14, 2009

rating: 4 (mediocre)
reason: bad coding skillz :p.

 Respond  
Bluepower10   -  Feb 25, 2009

Updated

 Respond  
Aucun50   -  Feb 22, 2009

Anytime

 Respond  
Bluepower10   -  Feb 22, 2009

Thanks Aucun50. Added.

 Respond  
TheNitelyfe   -  Feb 21, 2009

Guys really as if it's that f*cking hard to fix a mess of a script like this.

on *:TEXT:*:#: {
  if ($nick !isop $chan) { notice $nick You're not op. } 
  else {
    if (!ban == $strip($1)) && ($strip($2)) { mode # +b $address($2,9) | if (!$strip($2)) { notice $nick Ban who? } }
    if (!unban == $strip($1)) && ($strip($2)) { mode # -b $address($2,9) | if (!$strip($2)) { notice $nick Unban who? } }
    ;!ban bans the address of (9) of a given $2, which is a good way of banning someone. !unban unbans it.
    if (+ == $strip($1)) && ($strip($2)) { mode # + $+ $2- | if (!$strip($2)) { notice $nick What chanmode? } }
    if (- == $strip($1)) && ($strip($2)) { mode # - $+ $2- | if (!$strip($2)) { notice $nick What chanmode? } }
    ;This cuts the !voice, !devoice, etc. +<mode> sets any chanmode, -<mode> "desets" it.
    if (!topic == $strip($1)) && ($strip($2)) { topic # $2- | if (!$strip($2)) { notice $nick The topic is $chan(#).topic } }
    if (!kick == $strip($1)) { if ($2) { if (!$3) { kick # $2 Requested. | elsif ($3) { kick # $2 $3- } } elseif (!$2) { notice $nick No user specified. } | elseif ($2 !ison $chan) { notice $nick $2 isn't in here. } } }
    if (!opc == $strip($1)) { notice $nick The OP Commands in $chan are as follows: !ban <nick> [bans the nick] ; !unban <nick> [unbans a banned nick] ; +<mode> [sets any chan mode] ; -<mode> [unsets any chan mode] ; !topic <topic> [sets channel topic] ; !kick <nick> [kicks a nick if they're on the channel] ; !register <chan> [Guides someone through registering a channel.] }  
    if (!register == $strip($1)) && ($strip($2)) { if (!$mid($2,1,1) == $chr(35) { notice $nick Invalid channel format. } | else { join $2 | mode # +o $nick | msg # To register type /cs register (Channel) (Password) (Description), good luck! | part $2 } if (!$2) { notice $nick No chan stated. } }
  }
  if (!site == $strip($1)) { notice $nick Come visit us at http://www.bluepower10.webs.com/ } 
  if (!info == $strip($1)) { notice $nick Bot made by Bluepower10. Bluepower10 Productions owns this bot at http://bluepower10.webs.com/ $+ . }
  if (!commands == $strip($1)) { notice $nick Regular commands for this bot are: !commands, !site, !info, !time, !invite < username > and !pm < username >. }
  if (!time == $strip($1)) { notice $nick It is $time(h:nn:ss TT) on $date $+ . }
  if (!invite == $strip($1)) && ($strip($2)) { invite # $2 | if (!$strip($2)) { notice $nick Invite who? } }
  if (!pm == $strip($1)) && ($strip($2)) { if ($2 !ison $chan) { notice $nick $2 isn't here. } | else { msg $2 Hello $2 $+ ! I was asked to PM you by $nick $+ . How are you doing? } }
}
on *JOIN:#: { notice $nick Welcome to # $+ ! For a list of commands, type !commands.  For op commands, type !opc }
 Respond  
Aucun50   -  Feb 20, 2009

Here's a fix for ya:

on *:TEXT:*:#: {
  if (!ban == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan +b $2
    }
  }
  if (!mode == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan + $2-
    }
    else { msg $chan You're not oped on this channel }
  }
  if (!voice == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan +v $2
    }
    elseif (!$2) { msg $chan No nick entered }
    else { msg $nick You're not oped on this channel. }
  }
  if (!devoice == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan -v $2
    }
    elseif (!$2) { msg $chan No nick entered }
    else { .notice $nick You're not oped on this channel. }
  }
  if (!unban == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      mode $chan -b $2
    }
    elseif (!$2) { msg $nick No nick entered. Try again. }
    else { .notice $nick You're not oped on this channel. }
  }
  if (!commands == $strip($1)) {
    .notice $nick Regular commands for this bot are: !commands, !site, !info, !time, !invite < username > and !pm < username >.
  }
  if (!topic == $strip($1)) && ($strip($2-)) {
    if ($nick isop $chan) {
      topic $chan $2-
    }
    else { .notice $nick You're not oped on this channel. }
  }
  if (!site == $strip($1)) {
    msg $chan Come visit us at http://www.bluepower10.webs.com/
  }
  if (!info == $strip($1)) {
    msg $chan Bot made by Bluepower10. Bluepower10 Productions owns this bot at http://bluepower10.webs.com/ .
  }
  if (!kick == $strip($1)) && ($strip($2)) && ($strip($3-)) {
    if ($nick isop $chan) {
      kick $chan $2
      .notice $2 You where kicked by: $nick at $time on $date for $3- $+ .
    }
    elseif (!$2) { msg $nick No nick entered. Try again. }
    elseif ($2 !ison $chan) { msg $nick $2 is not in this channel }
    else { msg $nick You're not oped on this channel. }
  }
  if (!pm == $strip($1)) && ($strip($2)) {
    if ($2 ison $chan) {
      .notice $2 Hello $2! I was asked to PM you. How are you doing today?
    }
    else { .notice $nick Their not in this channel. }
  }
  if (!opc == $strip($1)) {
    if ($nick isop $chan) {
      .notice $nick Op commands are: !ban < username >, !unban < username >, !kick < username >, !+m, !im, !+i, !-i, !voice < username >, !devoice < username >, and !topic. Note: These commands only work for ops and if I am oped.
    }
    else { .notice $nick You need to be oped to see these commands. }
  }
  if (!Time == $strip($1)) {
    .notice $nick The time is $time and the date is $date $+ .
  }
  if (!invite == $strip($1)) && ($strip($2)) {
    invite $2- $chan
  }
  if (!register == $strip($1)) && ($strip($2)) {
    if ($nick isop $chan) {
      join $2
      mode $chan +o $nick
      msg $chan To register type /cs register (Channel) (Password) (Description), good luck!
      part $2
    }
    elseif ($1 == !register) && (!$2) { .notice $nick No channel entered }
    elseif ($1 == !register) && ($2) ($3) { .notice To much info given try: !register (Channel) }
    else { halt }
  }
}
on *JOIN:#: {
  .notice $nick Welcome to $chan ! For a list of commands, type !commands.  For op commands, type !opc.
}
 Respond  
Korvin   -  Feb 20, 2009

doesnt really matter, does it?

bluepower, try my version for problems, and if you get any, tell me what they are and ill fix

 Respond  
Bluepower10   -  Feb 20, 2009

There are differences. One is for all ops, and the other is for all commands.

 Respond  
Abtehi   -  Feb 19, 2009
Bluepower10   -  Feb 11, 2009

All of it, it seems like.

And when I looked it over, I couldn't find anything.

 Respond  
Aucun50   -  Feb 10, 2009

What parts aren't working tell me and ill give it a looks over

 Respond  
Bluepower10   -  Feb 10, 2009

It's not working for me. Does anyone know why? I can't find any bracket errors or any errors in status.

 Respond  
Korvin   -  Feb 02, 2009

stop commenting noob codes.

 Respond  
napalm`   -  Feb 02, 2009

STOP GIVING ME NOTICES THAT THIS NEWB CODE HAS COMMENTS.

ffs..

 Respond  
Korvin   -  Feb 01, 2009
####################################################################################################
This snippet is made by Bluepower10 Productions at http://bluepower10.webs.com/ . 
DO NOT REMOVE THIS!! Feel free to edit add, or delete anything below, but do not edit anything up here. To get help on this script, please contact me at: MSN: bluepower10@clubpenguinhq.com, AIM: Bluepower1000, EMAIL: bluepower10_productions@live.com Have fun! 1st script by Bluepower10.
You are using version 6.0 of this script. Please make sure you are using current version.
####################################################################################################

on *:TEXT:*:#: {
  var %e = !ban;!mode;!voice;!devoice;!unban;!commands;!topic;!site;!info;!kick;!pm;!opc;!time;!invite;!register
  tokenize 32 $strip($1-)
  if ($gettok(%e,1,59) == $1) { if ($nick isop $chan) mode $chan +b $$2 }
  if ($gettok(%e,2,59) == $1) {
    if ($nick isop $chan) { mode $chan + $$2- }
    msg $chan You're not oped on this channel
  }
  if ($gettok(%e,3,59) == $1) {
    if (!$2) msg $chan No nick entered | halt
    if ($nick isop $chan) mode $chan +v $$2 | halt 
    msg $nick You're not oped on this channel.
  }
  if ($gettok(%e,4,59) == $1) {
    if ($nick isop $chan) { mode $chan -v $$2 }
    elseif (!$2) { msg $chan No nick entered }
    else { .notice $nick You're not oped on this channel. }
  }
  if ($gettok(%e,5,59) == $1) {
    if (!$2) { msg $nick No nick entered. Try again. | halt }
    if ($nick isop $chan) { mode $chan -b $$2 }
    else { .notice $nick You're not oped on this channel. }
  }
  if ($gettok(%e,6,59) == $1) { .notice $nick Regular commands for this bot are: !commands, !site, !info, !time, !invite < username > and !pm < username >. }
  if ($gettok(%e,7,59) == $1) {
    if ($nick isop $chan) { topic $chan $2- }
    else { .notice $nick You're not oped on this channel. }
  }
  if ($gettok(%e,8,59) == $1) { msg $chan Come visit us at http://www.bluepower10.webs.com/ }
  if ($gettok(%e,9,59) == $1) { msg $chan Bot made by Bluepower10. Bluepower10 Productions owns this bot at http://bluepower10.webs.com/ . }
  if ($gettok(%e,10,59) == $1) {
    if (!$2) msg $nick Please provide a name. | halt
    if ($2 !ison $target) msg $nick Who?
    if ($nick isop $chan) {
      kick $chan $2
      .notice $2 You where kicked by: $nick at $time on $date for $$3- $+ .
    }
    else { msg $nick You're not oped on this channel. }
  }
  if ($gettok(%e,11,59) == $1) {
    if ($2 ison $chan) { .notice $$2 Hello $$2 $+ ! I was asked to PM you. How are you doing today? }
    else { .notice $nick Their not in this channel. }
  }
  if ($gettok(%e,12,59) == $1)  {
    if ($nick isop $chan) { .notice $nick Op commands are: !ban < username >, !unban < username >, !kick < username >, !+m, !im, !+i, !-i, !voice < username >, !devoice < username >, and !topic. Note: These commands only work for ops and if I am oped. }
    else { .notice $nick You need to be oped to see these commands. }
  }
  if ($gettok(%e,13,59) == $1)  { .notice $nick The time is $time and the date is $date $+ . }
  if ($gettok(%e,14,59) == $1)  { invite $$2- $chan }
  if ($gettok(%e,15,59) == $1)  {
    if ($nick isop $chan) {
      if (!$2) msg $nick register what?
      join $2
      if ($me isop $2) {
        cs register $2 password $iif($3,$3-,$nick $+ 's channel.)
        cs set $2 founder $nick
        part $2
        msg $chan You now own $2 Password: password Description: $+(,$iif($3,$3-,$nick $+ 's channel.),)
        halt
      }
      msg $chan To register type /cs register (Channel) (Password) (Description), good luck!
      part $2
    }
  }
}
on *JOIN:#: { .notice $nick Welcome to $chan ! For a list of commands, type !commands.  For op commands, type !opc }

make sure that youre an op while you trigger it

 Respond  
Bluepower10   -  Feb 01, 2009

Unbanning doesn't seem to work. Working on fixing on it..

 Respond  
Bluepower10   -  Feb 01, 2009

But it is a lot more confusing.

 Respond  
Korvin   -  Feb 01, 2009

Really clean version:

####################################################################################################
This snippet is made by Bluepower10 Productions at http://bluepower10.webs.com/ . 
DO NOT REMOVE THIS!! Feel free to edit add, or delete anything below, but do not edit anything up here. To get help on this script, please contact me at: MSN: bluepower10@clubpenguinhq.com, AIM: Bluepower1000, EMAIL: bluepower10_productions@live.com Have fun! 1st script by Bluepower10.
You are using version 6.0 of this script. Please make sure you are using current version.
####################################################################################################

on *:TEXT:*:#: {
  var %e = !ban;!mode;!voice;!devoice;!unban;!commands;!topic;!site;!info;!kick;!pm;!opc;!time;!invite;!register
  tokenize 32 $strip($1-)
  if ($gettok(%e,1,59) == $1) { if ($nick isop $chan) mode $chan +b $$2 }
  if ($gettok(%e,2,59) == $1) {
    if ($nick isop $chan) { mode $chan + $$2- }
    msg $chan You're not oped on this channel
  }
  if ($gettok(%e,3,59) == $1) {
    if (!$2) msg $chan No nick entered | halt
    if ($nick isop $chan) mode $chan +v $$2 | halt 
    msg $nick You're not oped on this channel.
  }
  if ($gettok(%e,4,59) == $1) {
    if ($nick isop $chan) { mode $chan -v $$2 }
    elseif (!$2) { msg $chan No nick entered }
    else { .notice $nick You're not oped on this channel. }
  }
  if ($gettok(%e,5,59) == $1) {
    if ($nick isop $chan) { mode $chan -b $$2 }
    else { .notice $nick You're not oped on this channel. }
    if (!$2) { msg $nick No nick entered. Try again. }
  }
  if ($gettok(%e,6,59) == $1) { .notice $nick Regular commands for this bot are: !commands, !site, !info, !time, !invite < username > and !pm < username >. }
  if ($gettok(%e,7,59) == $1) {
    if ($nick isop $chan) { topic $chan $2- }
    else { .notice $nick You're not oped on this channel. }
  }
  if ($gettok(%e,8,59) == $1) { msg $chan Come visit us at http://www.bluepower10.webs.com/ }
  if ($gettok(%e,9,59) == $1) { msg $chan Bot made by Bluepower10. Bluepower10 Productions owns this bot at http://bluepower10.webs.com/ . }
  if ($gettok(%e,10,59) == $1) {
    if (!$2) msg $nick Please provide a name. | halt
    if ($2 !ison $target) msg $nick Who?
    if ($nick isop $chan) {
      kick $chan $2
      .notice $2 You where kicked by: $nick at $time on $date for $$3- $+ .
    }
    else { msg $nick You're not oped on this channel. }
  }
  if ($gettok(%e,11,59) == $1) {
    if ($2 ison $chan) { .notice $$2 Hello $$2 $+ ! I was asked to PM you. How are you doing today? }
    else { .notice $nick Their not in this channel. }
  }
  if ($gettok(%e,12,59) == $1)  {
    if ($nick isop $chan) { .notice $nick Op commands are: !ban < username >, !unban < username >, !kick < username >, !+m, !im, !+i, !-i, !voice < username >, !devoice < username >, and !topic. Note: These commands only work for ops and if I am oped. }
    else { .notice $nick You need to be oped to see these commands. }
  }
  if ($gettok(%e,13,59) == $1)  { .notice $nick The time is $time and the date is $date $+ . }
  if ($gettok(%e,14,59) == $1)  { invite $$2- $chan }
  if ($gettok(%e,15,59) == $1)  {
    if ($nick isop $chan) {
     if (!$2) msg $nick register what?
      join $2
      if ($me isop $2) {
        cs register $2 password $iif($3,$3-,$nick $+ 's channel.)
        cs set $2 founder $nick
        part $2
        msg $chan You now own $2 Password: password Description: $+(,$iif($3,$3-,$nick $+ 's channel.),)
        halt
      }
      msg $chan To register type /cs register (Channel) (Password) (Description), good luck!
      part $2
    }
  }
}
on *JOIN:#: { .notice $nick Welcome to $chan ! For a list of commands, type !commands.  For op commands, type !opc }

made your register more effective. this format is a loooooot cleaner than what you have.

 Respond  
sunslayer   -  Feb 01, 2009

u need to prefix the begining of the code with ';' in order to stop it from being read as part of the code

 Respond  
Aucun50   -  Feb 01, 2009

No bracket mismatch :( Looks nice

 Respond  
Bluepower10   -  Feb 01, 2009

New version, fixed some things.

 Respond  
Aucun50   -  Feb 01, 2009

Yes !mode + $2- is better!

@Linuxuser it did that because you have no else { halt } so it thought every word was a command.

 Respond  
Bluepower10   -  Feb 01, 2009

Ok, sos I'm confused. Wouldn't !Mode be better with $2-?

 Respond  
Linuxuser   -  Feb 01, 2009

PunkTuReD is correct $2- would be better it'd save unnecessary processing of useless scripting.
PunkTuReD very good oh and Aucun50 to your previous comment of

"This script you have is a fail! Lol if you type anything it does "You're not oped on #pruserv"

@Linuxuser Check to see before you post, also make the script work right"

well on the server i use it works fine and i use the same format in all my scripts so maybe you just typed it wrong or copy and pasted it wrong.

 Respond  
PuNkTuReD   -  Jan 31, 2009

no need for $2 $3-
if you can easily do $2-

 Respond  
Aucun50   -  Jan 31, 2009

Or mode $2 $3-

 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.