All pastes #499455 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-21 02:09 UTC
rendered paste body
on *:TEXT:-apply*:#dazedBOT:{
  if (!$2) {
    notice $nick You must add a channel
    notice $nick Example ( -apply #dazedBOT )
    halt
  }
  if ($2 == $null) {
    notice $nick Sorry we are already in this channel
    notice $nick Try again
    halt
  }
  if ($2) {
    join $2
    set %channel $2
    timer 1 3 $idlers($chan,$nick)
  }
}
alias idlers{
if ($nick(%channel,0) <= 5) {
  notice %whoasked You currently have $nick(%channel,0) idlers.
  notice %whoasked We require you have 5 idlers but this is a test.
  notice %whoasked Not including the Chanserv and I
  part %channel
  timer 1 5 checkaccess
}
}
alias checkaccess {
if (%whoasked isop %channel) {
  notice %whoasked Congrats you have passed the requirements
  notice %whoasked Please add the bot by typing !addco reliablegaming
  notice %whoasked Have a wonderful day!
}
else {
  notice %whoasked You do not have ops in the channel %channel
  notice %whoasked Please have someone with ops apply for the bot
  part %channel
  unset %channel
  unset %whoasked
}
}