Simpe Bot AddUsers

By G13AoUsTiS on Nov 23, 2007

Just A Simple Bot Addusers snippet COMMENTS PLEASE!

on *:load: { //echo 7Thank You For Loading The 7Bot Add Commands By G13AoUsTiS | /writeini users.ini $$?=="Bot Master?" level master | %finish == $input(Added Bot Master!,68) }

on *:text:!addop*:#: {
  if $readini(users.ini,$nick,level == master) { /writeini users.ini $2 level OP | /notice $nick Added $2 At my Op list }
}

on *:text:!addvoice*:#: {
  if $readini(users.ini,$nick,level == master) { /writeini users.ini $2 level VOICE | /notice $nick Added $2 At my Voice list }
}

on *:text:!autoop*:#: {
  if $readini(users.ini,$nick,level == master)  { /writeini users.ini $2 mode autoop | /notice $nick Added $2 At my AutoOP list }
}

on *:text:!autovoice*:#: {
  if $readini(users.ini,$nick,level == master)  { /writeini users.ini $2 mode autovoice | /notice $nick Added $2 At my AutoVOICE list }
}

on *:text:!autonone*:#: {
  if $readini(users.ini,$nick,level == master)  { /writeini users.ini $2 mode NONE | /notice $nick $2 's Modes: NONE }
}
on *:text:!autoban*:#: {
  if $readini(users.ini,$nick,level == master)  { /writeini users.ini $2 mode ban | /notice $nick Added $2 to autoban list }
}

on *:join:#: {
  if $readini(users.ini,$nick,mode == autoop)  { /mode # +o $nick }
  if $readini(users.ini,$nick,mode == autovoice)  { /mode # +v $nick }
  if $readini(users.ini,$nick,mode == none)  { halt }
  if $readini(users.ini,$nick,mode == ban)  { /ban -k # $nick }
}

on *:text:*:#: {
  if $readini(users.ini,$nick,level == master) && ($1 == +o) {
    if ($2 == $null) { mode # +o $nick }
    if ($2 != $null) { mode # +o $2 }
  }
  if $readini(users.ini,$nick,level == op) && ($1 == +o) {
    if ($2 == $null) { mode # +o $nick }
    if ($2 != $null) { mode # +o $2 }
  }
  if $readini(users.ini,$nick,level == master) && ($1 == -o) {
    if ($2 == $null) { mode # -o $nick }
    if ($2 != $null) { mode # -o $2 }
  }
  if $readini(users.ini,$nick,level == op) && ($1 == -o) {
    if ($2 == $null) { mode # -o $nick }
    if ($2 != $null) { mode # -o $2 }
  }
  if $readini(users.ini,$nick,level == op) && ($1 == +v) {
    if ($2 == $null) { mode # +v $nick }
    if ($2 != $null) { mode # +v $2 }
  }
  if $readini(users.ini,$nick,level == master) && ($1 == +v) {
    if ($2 == $null) { mode # +v $nick }
    if ($2 != $null) { mode # +v $2 }
  }
  if $readini(users.ini,$nick,level == master) && ($1 == -v) {
    if ($2 == $null) { mode # -v $nick }
    if ($2 != $null) { mode # -v $2 }
  }
  if $readini(users.ini,$nick,level == op) && ($1 == -v) {
    if ($2 == $null) { mode # -v $nick }
    if ($2 != $null) { mode # -v $2 }
  }
  if $readini(users.ini,$nick,level == op) && ($1 == +b) { ban -k # $2 $3- }
  if $readini(users.ini,$nick,level == master) && ($1 == +b) { ban -k # $2 $3- }
  if $readini(users.ini,$nick,level == voice) && ($1 == +v) {
    if ($2 == $null) { mode # +v $nick }
    if ($2 != $null) { mode # +v $2 }
  }
  if $readini(users.ini,$nick,level == voice) && ($1 == -v) {
    if ($2 == $null) { mode # -v $nick }
    if ($2 != $null) { mode # -v $2 }
  }
  if $readini(users.ini,$nick,level == master) && ($1 == .mode) { mode # +v $2 }
  if $readini(users.ini,$nick,level == op) && ($1 == .mode) { mode # +v $2 }
  if $readini(users.ini,$nick,level == master) && ($1 == .say) { /msg $chan $2- }
  if $readini(users.ini,$nick,level == master) && ($1 == .act) { /describe $chan $2- }
}

Comments

Sign in to comment.
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.