#FragRadio
Posted by chriscloyd
Sunday, October 29, 2006
Description:

on *:TEXT:.apply*:#FragRadio:{
  if (!$2) {
    notice $nick You must add a channel
    notice $nick Example ( .apply #FragRadio )
    halt
  }
  if ($2 == #FragRadio) {
    notice $nick Sorry we are already in this channel
    notice $nick Try again
    halt
  }
  if ($2) {
    join $2
    set %channel $2
    timer 1 3 checkidlers
  }
}
/idlers {
  if ($nick(%channel,0) <= 3) {
    notice %whoasked You currently have $nick(%channel,0) idlers.
    notice %whoasked We require you have 3 idlers but this is a test.
    notice %whoasked Not including the Chanserv and I
    part %channel
    timer 1 5 checkaccess
  }
}
/checkaccess {
  if (%whoasked isop %channel) {
    notice %whoasked Congrats you have passed the requirements
    notice %whoasked Please add the bot by typing !addco FragRadio
    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
  }
}
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world