Bot Commands

By Shadow_Knight on Aug 03, 2004

This script contains 30+ bot commands which have all been tested. Just Copy and Paste this script into the Remotes section of your bot, then make the variable %master "yournickhere" (without the quotes of course). This will make you the master of the bot, giving you access to all of its commands (type `commands to see them all). Also note that this is my first ever made script, so there may be slight problems, and this will only work on servers that have Chanserv. However, I have tested them all and they ALL work. I am also going to make a better version of this script that will unclude aop, sop, hop, vop to give you the op, voice etc. status when you first enter the channel. Have fun ;)

P.S. Thanks to |SA|uh for the script design. ^_^

on *:Text:`*:#:{
  if ($nick == %master) && (!$2) {
    if ($1 == `op) { mode $chan +o %master }
    if ($1 == `deop) { mode $chan -o %master }
    if ($1 == `voice) { mode $chan +v %master }
    if ($1 == `devoice) { mode $chan -v %master }
    if ($1 == `halfop) { mode $chan +h %master }
    if ($1 == `dehalfop) { mode $chan -h %master }
    if ($1 == `owner) { mode $chan +q %master }
    if ($1 == `deowner) { mode $chan -q %master }
    if ($1 == `kill) { quit Yes Master $nick ... I Shall Obey You }
    if ($1 == `protect) { mode $chan +a %master }
    if ($1 == `deprotect) { mode $chan -a %master }
    if ($1 == `invincible) { mode $chan +vhoaq %master %master %master %master %master }
    if ($1 == `deinvincible) { mode $chan -vhoaq %master %master %master %master %master }
  }
  elseif ($nick == %master) && ($2) {
    if ($1 == `op) { mode $chan +o $2 }
    if ($1 == `deop) { mode $chan -o $2 }
    if ($1 == `voice) { mode $chan +v $2 }
    if ($1 == `devoice) { mode $chan -v $2 }
    if ($1 == `halfop) { mode $chan +h $2 }
    if ($1 == `dehalfop) { mode $chan -h $2 }
    if ($1 == `owner) { mode $chan +q $2 }
    if ($1 == `deowner) { mode $chan -q $2 }
    if ($1 == `kick) { kick $chan $2- }
    if ($1 == `kickban) { mode $chan +b $address($2,2) | kick $chan $2- }
    if ($1 == `ban) { mode $chan +b $address($2,2) }
    if ($1 == `unban) { mode $chan -b $address($2,2) }
    if ($1 == `akadd) { cs akick $chan add $2- }
    if ($1 == `akdel) { cs akick $chan del $2 } 
    if ($1 == `join) { join $2 }
    if ($1 == `part) { part $2- }
    if ($1 == `protect) { mode $chan +a $2 }
    if ($1 == `deprotect) { mode $chan -a $2 }
  }
}
on *:TEXT:`commands:#:{ if ($1 == `commands) {
    notice $nick My Master Commands (Commands that respond to the Master) are: `op, `deop, `voice, `devoice, `halfop, `dehalfop, `owner, `deowner, `kill, `protect, `deprotect, `invincible, and `deinvincible
    { notice $nick My other Commands are: `op <nick>, `deop <nick>, `voice <nick>, `devoice <nick>, `halfop <nick>, `dehalfop <nick>, `owner <nick>, `deowner <nick>, `kick <nick> <reason>, `Kickban <nick> <reason>, `Ban <nick>, `unban <nick>, `akadd <nick> <reason> (same as Akick Add), `akdel <nick> (same as Akick del), `join <chan>, `part <chan> <reason>, `protect <nick>, and `deprotect <nick> 
    }
  }

Comments

Sign in to comment.
Jethro   -  Dec 29, 2009

Indeed this script needs being fixed and improved. Search other relay scripts. There are many, many of them to have been done and worked. I mean, there are better ways of transforming it into a better one...

Oh by the way, this string $nick == %master is the culprit.

 Respond  
slippy090   -  Dec 28, 2009

Is this script fixed?

 Respond  
fire_wizard1   -  Dec 02, 2008

well it is a rule that you have to test the script before you post it. so to make sure that the script works

 Respond  
F*U*R*B*Y*   -  Oct 01, 2008

meh, heard of EDIT BUTTON..... post whore.....

 Respond  
Bullet_Dodger   -  Oct 01, 2008

Last Updated Sep 04, 2008
^^^^^^^^^^^^^^^^^^^^^^^^^^
Not To Long Ago

 Respond  
Bullet_Dodger   -  Oct 01, 2008

.....

 Respond  
F*U*R*B*Y*   -  Oct 01, 2008

i think your the bigger idiot for bumping an old script.....

 Respond  
Bullet_Dodger   -  Oct 01, 2008

This script contains 30+ bot commands which have all been tested

Well you must of farking realised it didnt work then idiot

 Respond  
Cenadascripter   -  Jan 07, 2007

ok cause it don\'t work

 Respond  
raTed   -  Nov 28, 2006

remove number 1 and delete %master ill resript it 4 u guys

 Respond  
`Kazuma   -  Feb 04, 2006

I think I made a mistake with number 1. But still, the %master doesn\'t work.

 Respond  
`Kazuma   -  Feb 04, 2006

A few problems:

1) Where\'s the variable for %master? Wouldn\'t you need to set it as your name or if you have power?
2) You can use .notice so it will be silent.
3) It looks like a missing bracket.

 Respond  
Fossa   -  Nov 18, 2005

Also a bracket misplace in the first on text line

 Respond  
xDaeMoN   -  Nov 18, 2005

I believe it\'s the order of the event that is why the commands trigger is not working. Try putting the On Text event first for thecommands. Also remove the \"{\" on this line \"{ notice $nick My other Commands...\"

 Respond  
F*U*R*B*Y*   -  Nov 18, 2005

i think the command you need to use is ``op i will check it out when i get home (at school currently)

 Respond  
F*U*R*B*Y*   -  Nov 18, 2005

i think the command you need to use is ``op i will check it out when i get home (at school currently)

 Respond  
vampslim   -  Nov 17, 2005

Lol the `commands code doesn\'t work wanna fix that?

 Respond  
err2   -  Jul 27, 2005

meow

 Respond  
Ryodox   -  Aug 11, 2004

Also, make a check to see if the master is issuing the `commands command, so the master-only commands will only appear to him or her.

 Respond  
Ryodox   -  Aug 11, 2004

I haven\'t used this, but using a simple variable for the master\'s nickname is a very bad idea. This would mean that for every nick change you make, you would have to change the value of the %master variable. And if you didn\'t do that, someone malicious could change their nickname to the one in the %master variable and take complete control over the bot. Use user levels instead.

 Respond  
Roves   -  Aug 05, 2004

how about learning to script before posting? and debug it on diff networks ect.simple.

 Respond  
Shadow_Knight   -  Aug 04, 2004

well im sorry it doesnt work...like i said this is my first ever made script and i am a newbie at scripting..and i would also appreciate it if you would cut me some slack and maybe suggest how to make it better instead of callin me names coughasasacough

 Respond  
X-FILE   -  Aug 04, 2004

LOL

 Respond  
Lostgamer   -  Aug 04, 2004

Doesn\'t work for me

 Respond  
asasa   -  Aug 04, 2004

hmm doesent work you piece of shit

 Respond  
Roves   -  Aug 04, 2004

doesnt work.

 Respond  
Shadow_Knight   -  Aug 03, 2004

If there are any questions about something you dont understands, feel free to ask ^^

 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.