All pastes #394058 Raw Edit

jbk blows

public text v1 · immutable
·published 2007-03-14 00:54 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 #cyberFRAG14,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:
----------------------------------------------------------
alias 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
  }
}
alias 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 $me $+ 14,1 )9x
    notice %whoasked 9,1x14(14 The bot will come in shortly!14,1 )9x
    notice %whoasked 9,1x14(14 Have a wonderful day!14,1 )9x
    msg #cyberfrag.lms -idle %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
  }
}