Staff Bot v1 Preview

By Tamaki on Aug 10, 2007

Here is a simple status bot for yourself, just stick it in your remotes. Just a little preview of my staff bot whenever it gets posted. Doesn't work for yourself if you use it in your own remotes. Make sure you change the passwords.

Instructions

Load into remotes: [alt] + r
Change Master, Superadmin, and admin passwords.
To 'log-in', PM your bot, (or have the staff pm you) and type the password you wish to use (or the ones you give you staff.)

Features:

Status (uses anope codes such as: !owner !protect !deop !op, etc.)

Disclaimer:

Keep in mind this is a snippet preview of the actual bot.

ATTENTION!!!! THIS SCRIPT IS NOT YET COMPATIBLE TAD'S HOME INTEGRATION SCRIPT! THIS SCRIPT WILL NOT EVER BE COMPATIBLE WITH TAD'S INTEGRATION SCRIPT. NOR WILL STAFF BOT V001. SORRY!

on *:TEXT:!login*:?: {
  If ($2- === <owner password here>) {
    auser 999 $nick
    msg $nick You have been identified as a master!
  }
}

on *:TEXT:!login*:? {
  If ($2- === <superadmin password here>) {
    auser 500 $nick
    msg $nick You have been identified as a super admin!
  }
}

on *:TEXT:!login*:? {
  If ($2- === <admin password here>) {
    auser 300 $nick
    msg $nick You have been identified as aa admin!
  }
  Else {
    msg $nick That password is incorrect.
  }
}

on 999:TEXT:!owner*:#: {
mode $chan +q $nick
}

on 999:TEXT:!deowner*:#: {
mode $chan -q $nick
}

on 500:TEXT:!protect*:#: {
mode $chan +a $nick
}

on 500:TEXT:!deprotect*:#: {
mode $chan -a $nick
}

on 300:TEXT:!op*:#: {
mode $chan +o $nick
}

on 300:TEXT:!deop*:#: {
mode $chan -o $nick
}

on 300:TEXT:!halfop*:#: {
mode $chan +h $nick
}

on 300:TEXT:!dehalfop*:#: {
mode $chan -h $nick
}

Comments

Sign in to comment.
Tamaki   -  Jan 24, 2011

This is old, you can find the latest version of Staff Bot here: http://www.hawkee.com/scripts/11648798/

 Respond  
Jethro   -  Jan 24, 2011

Newton3788, you can consolidate these two text events into one:

on @$*:text:/^!(login)\s(.+)|((de)?(half)?(o(wner|p)|protect|voice))$/iS:*:{ 
  if ($chan) {
    if ($ulevel >= 999) { 
      mode # $replacexcs($regml(1),owner,+q,deowner,-q) $nick 
    }
    elseif ($ulevel >= 500) { 
      mode # $replacexcs($regml(1),protect,+a,deprotect,-a) $nick 
    }
    elseif ($ulevel >= 300) { 
      mode # $replacexcs($regml(1),op,+o,deop,-o,halfop,+h,dehalfop,-h) $nick 
    }
  }
  if (!$chan) && ($regml(1) == login) {
    if ($regml(2) === <owner password here>) {
      auser 999 $nick
      msg $nick You have been identified as a master!
    }
    elseif ($regml(2) === <super admin password here>) {
      auser 500 $nick
      msg $nick You have been identified as a super admin!
    }
    elseif ($regml(2) === <admin password here>) {
      auser 300 $nick
      msg $nick You have been identified as an admin!
    }
  }
}

You may need to rework your regex a bit.

 Respond  
newtonlol   -  Jan 24, 2011
 Respond  
Fatal_Point   -  Aug 11, 2007

Instead of auser * $nick, why not use the address? It\'s more secure, because anyone can impersonate someone and then do damage before protection actually kicks in.

auser 500 $address($nick,2)

 Respond  
Ghost-lit Warder   -  Aug 11, 2007

You could modify the to a variable so that someone can change/set it easily.

 Respond  
Lindrian   -  Aug 11, 2007

I will review your staff bot soon, got alot of work and stuff, be patient ^_^

 Respond  
Shadow Clash   -  Aug 11, 2007

Lame, everyone can find our password if we type !login

 Respond  
Anti   -  Aug 10, 2007

indeed it is what if he is new to scripting? give him some time to catch up..

 Respond  
Noutrious   -  Aug 10, 2007

Coding like this was ages ago.

 Respond  
Anti   -  Aug 10, 2007

hmm just post it as a script not a snippet so you can have the whole bot.. they can figure it out

 Respond  
Tamaki   -  Aug 10, 2007

i\'m afraid the latter of the two, hawkee gives me a limit to what i can upload and there was only enough room for the script and the instructions, its actually taking them longer than usual to post the bot (or tell me it was denied)

 Respond  
Anti   -  Aug 10, 2007

rofl is this going to come with a cilent or not? :P or just be a big snippet with commands..

 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.