estream apply
Posted by chriscloyd
Friday, February 02, 2007
Description: yaya
on *:TEXT:@apply*:#eStream:{
if (!$2) {
notice $nick You must add a channel
notice $nick Example ( .apply #eStream )
halt
}
if ($2 == #eStream) {
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) <= 42) {
notice %whoasked You currently have $nick(%channel,0) idlers.
notice %whoasked We require you have 40 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 eStream
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
}
}
on *:TEXT:@apply*:#eStream:{
if (!$2) {
notice $nick You must add a channel
notice $nick Example ( .apply #eStream )
halt
}
if ($2 == #eStream) {
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) <= 42) {
notice %whoasked You currently have $nick(%channel,0) idlers.
notice %whoasked We require you have 40 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 eStream
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
}
}