Remote Control User

By xmhsdudex on Apr 23, 2004

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

Comments

Sign in to comment.
JimpsEd   -  May 06, 2004

I am getting the error Invalid command: SPACE when I try make my bot do someone. What is happening?

 Respond  
xmhsdudex   -  May 02, 2004

to put it even better, if you think i ripped off someone elses script, please tell me

 Respond  
xmhsdudex   -  May 02, 2004

when i say that i mean that if in the very rare event that urs looks like mine because it should not! please tell me

 Respond  
Dev|l   -  Apr 26, 2004

Accidently Ripped ? LMFAOOOOOOOOOOOOOOOO

 Respond  
xmhsdudex   -  Apr 23, 2004

I apologize for my blank script that i submitted earlier. Feel free to post your comments on my script and if i ripped accidentally off of ur\'s somehow, please tell me. Thanks

 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.