All pastes #394039 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-14 00:37 UTC
rendered paste body
REMOTE PART:
---------------------------------------------------------
on *:TEXT:@apply*:#cyberfrag:{
  if (!$2) {
    notice $nick 9,1x14(14  You must add a channel14,1 )9x  
    notice $nick 9,1x14(14  Example .apply #FragRadio14,1 )9x  
  }
  elseif ($2 == #cyberfrag) {
    notice $nick 9,1x14(14  The Bot Is Already In That Channel14,1 )9x  
    notice $nick 9,1x14(14  Try again with a different channel14,1 )9x 
  }
  elseif ($2) {
    join $2
    set %channel $2
    set %whoasked $nick
    timer 1 3 idlers
  }
}
----------------------------------------------------------------------------------------
ALIASES PART:
----------------------------------------------------------
/idlers {
  if ($nick(%channel,0) <= 10) {
    notice %whoasked 9,1x14(14 You currently have $nick(%channel,0) idlers.14,1 )9x
    notice %whoasked 9,1x14(14  We require you have 10 idlers.14,1 )9x
    notice %whoasked 9,1x14(14  Not including the Chanserv and I.14,1 )9x
    part %channel
    unset %channel
    unset %whoasked
  }
  else {
    timer 1 5 checkaccess
  }
}
/checkaccess {
  if (%whoasked isop %channel) {
    notice %whoasked 9,1x14(14 Congrats × You have passed the requirements14,1 )9x
    notice %whoasked 9,1x14(14 Please add the bot by typing !addco FragRadio14,1 )9x
    notice %whoasked 9,1x14(14 The bot FragRadio will come in shortly!14,1 )9x
    notice %whoasked 9,1x14(14 Have a wonderful day!14,1 )9x
    msg #Frag-priv -botjoin %channel
    part %channel
    unset %channel
    unset %whoasked

  }
  else {
    notice %whoasked 9,1x14(14 You do not have ops in the channel %channel14,1 )9x
    notice %whoasked 9,1x14(14 Please have someone with ops, Apply for the bot14,1 )9x
    part %channel
    unset %channel
    unset %whoasked
  }
}