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