This snippet can enable users to control other users via a password that the user being controlled sets. It is mainly for bot control purposes. This snippet can be expanded to include several commands. Replace BOTUSERNAME with the bot's name and replace #CHAN with the chan you wish to use it in.
on *:text:!Remote ^ACTIVATIONCODE^ *:?:{
if ($3 == on) {
/set %master $nick
/query $nick Type !say, !op, !deop, !do and type the text to say, who to op/deop, or what to do. This bot operates only in #CHAN for security reasons.
}
if ($3 == off) {
/unset %master*
/query $nick You can no longer operate BOTUSERNAME.
}
}
on *:TEXT:!Say *:?: {
if ($nick == %master) {
/msg $2 $3-
/write botlog.txt $fulldate $nick !Say $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }
}
on *:TEXT:!Op *:?: {
if ($nick == %master) {
/mode $2 +o $3-
/write botlog.txt $fulldate $nick !Op $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }
}
on *:TEXT:!Deop *:?: {
if ($nick == %master) && ($2 != BOTUSERNAME) {
/mode $2 -o $3-
/write botlog.txt $fulldate $nick !Deop $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }
}
on *:TEXT:!Do *:?: {
if ($nick == %master) {
/describe $2 $3-
/write botlog.txt $fulldate $nick !Do $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }
}
on *:TEXT:!Kill *:?: {
if ($nick == %master) && ($2 != BOTUSERNAME) {
/kill $2-
/write botlog.txt $fulldate $nick !Kill $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }
}
on *:TEXT:!Join *:?: {
if ($nick == %master) {
/join $2-
/write botlog.txt $fulldate $nick !Join $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }
}
on *:TEXT:!Part *:?: {
if ($nick == %master) {
/part $2-
/write botlog.txt $fulldate $nick !part $2-
}
else { /query $nick Sorry you are not authorized to use this function or you are using the function incorrectly. }