Idlebot ,, GOOD working! try now.
on *:TEXT:!idle*:#yourchannel:{
if ($left($2,1) == $chr(35)) {
if ($me !ison $2) {
.join $2
.notice $nick Joining $+(',$2,') Im join your channel, if everything is ok i will stay!. .timer 1 2 req_check $2 $nick $chan
}
else { .notice $nick I'm already in $+(',$3,'.) }
}
else { .notice $nick Correct syntax: !idle <#ChannelName> }
}
alias req_check {
if ($me ison $1) {
;Here we check if total amount of idlers in the channel is above or equal 5.
if ($nick($1,0) >= 5) {
;Here we check if the total amount of opped people in channel is above or equal 4.
if ($nick($1,0,o) >= 4) {
;Here we check if the nick who requested the join is opped in the channel.
if ($2 isop $1) {
msg $3 I was requested by $+(',$2,') to join $+(',$1,'.) The requirements have been fullfilled.(own idlebots in #np-nl)
msg $1 Your channel meets the requirements and I will stay. | writeini -n idler.ini $3 $2 $1
}
else { msg $1 Request failed. $+(',$2,') You dont have +o. try later if u got ops! | part $1 Error }
}
else { msg $1 Request failed. $+(',$1,') You haven't enough users in your channel! | part $1 Error }
}
else { msg $1 Request failed. $+(',$1,') does not have the required amount of users in channel. | part $1 Error }
}
}
on *:PART:#yourchannel: {
if ($readini(idler.ini,$chan,$nick) != $null) { part $readini(idler.ini,$chan,$nick) $nick has left $chan | | msg $chan Purged $readini(idler.ini,$chan,$nick) | remini idler.ini $chan $nick }
}