All pastes #257950 Raw Edit

Bot Script

public text v1 · immutable
#257950 ·published 2006-11-25 23:46 UTC
rendered paste body
on *:TEXT:!av*:#thepc: {
  if ($nick isop $chan || $nick ishop $chan) { 
    if ($$2 ison $chan) {
      guser 3 $$2 3
      mode $chan +v $$2
      notice $nick  $+ $$2 has been added to the AVOICE list.
    }
    else {
      notice $nick  $+ $$2 must be in the channel to be added to the AVOICE list!
    }
  }
}
on 3:JOIN:#thepc: { 
  /mode $chan +v $nick
}
on *:CONNECT: {
  if ($network == SwiftIRC) {
    msg NickServ IDENTIFY 041692
    mode $me +B
    join #thepc
    msg ChanServ IDENTIFY #thepc kewliocakes
    timer 1 1 msg #thepc !owner
    join #thepc.staff staff
  }
}
on *:TEXT:!part:#thepc,#thepc.staff: {
  if ($nick isop $chan) {
    part $chan !part used by $nick
  }
}
on *:TEXT:!lag:#thepc,#thepc.staff: {
  if ($nick isop $chan) {
    notice $nick My current lag is: %zlag.current $+ s.
  }
}
on 19:TEXT:!disconnect:#: {
  quit
}
on 19:TEXT:!reset:#: {
  quit Resetting
  server $server
}
on *:TEXT:!global *:#thepc,#thepc.staff: {
  if ($nick isop $chan || $nick ishop $chan) {
    amsg 4[Global by $nick $+ 4] 12 $+ $$2- 
  }
}
on *:TEXT:!change *:#thepc,#thepc.staff: {
  if (%pest == on) {
    if ($nick isop $chan || $nick ishop $chan) {
      set %world $$2-
      amsg 12|| NEW WORLD SET BY $nick ||
    }
  }
}
on *:TEXT:!pcw:#thepc,#thepc.staff: {
  if (%pest == on) {
    notice $nick 4[12Pest-Control4]10 %world
  }
}
on *:TEXT:!world:#thepc,#thepc.staff: {
  if (%pest == on) { 
    notice $nick 4[12Pest-Control4]10 %world
  }
}
on *:TEXT:!peston:#thepc,#thepc.staff: {
  if ($nick isop $chan && %pest == off) {
    set %pest on
    amsg 12 $+ $nick has enabled PEST.
  }
}
on *:TEXT:!pestoff:#thepc,#thepc.staff: {
  if ($nick isop $chan && %pest == on) {
    set %pest off
    amsg 12 $+ $nick has disabled PEST.
  }
}
on 19:TEXT:!access *:#thepc,#thepc.staff: {
  msg ChanServ ACCESS $chan ADD $$2 $$3
  notice $nick  $+ $$2 has been added to the access list at level $$3 $+ .
}
on *:TEXT:!rehash *:#thepc,#thepc.staff: { 
  if ($nick isop $chan) {
    amsg 4Rehashing the bot. Scripts will reload in $$2 seconds.
    remote off 
    timer 1 $$2 remote on
    timer 1 $$2 amsg 3The bot has been rehashed.  All scripts have been reloaded.
  }
}