Hi all
i need a script like when type !request [channel]
the bot join the channel look if it is at least 15 people in the chan the bot stay in the chan If it's not at least 15 it left the channel
When/if the bot accept the channel it pm me owner and say Request accepted [channel] the requester wait for chan owner access
bind pub - !request request:channel
proc request:channel {nick host hand chan arg} {
#add some tests here to check if the input is a channelname
putserv "JOIN [lindex [split $arg] 0]"
utimer 5 [list check:howmany [lindex [split $arg] 0]]
}
proc check:howmany {chan} {
if {[llength [chanlist $chan]] < 15} {
putserv "PART $chan"
} else {
#add modes to the next line
channel add $chan
#add a line to send a msg to the owner here
}
}
you can't use utimer for this, the bot will immidiatly part the channel after joining (depends on the settings in the conf file, and its does that by default).
this one's better:
which script are you talking about ? and why would you want to do .-chan #channel, the bot will part if it finds that the channel has less than 15 users.
plzz help why
sir_fz this is error msg fron you script
when the bot join is only one op it don't part
in the channel the bot not ansvar for commands like !cigarette a LOL toolz script and it don't see me or it's a verry big problem plzzz help me