on *:TEXT:-apply*:#mklaiff: {
if (!$2) {
notice $nick You must add a channel.
notice $nick Example ( -apply #mklaiff )
halt
}
elseif ($2 == #mklaiff) {
notice $nick Sorry we are already in this channel.
notice $nick Try again.
halt
}
elseif ($2) {
set %whoasked $nick
set %channel $2
join %channel
idlers
}
}
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 ChanServ and $me $+ .
part %channel
unset %channel
unset %whoasked
}
else {
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
}
}