Originally Posted By: Sakana
Seems like this is what you're looking for

Code:
on *:text:!join:#BOTNAMEHERE: {
var %chan = $chr(35) $+ $nick
join %chan 
set %botchans %botchans %chan
msg # I will join your channel!
}


alias autojoin {
var %i 1
while ($gettok($1-,%i,32)) {
.timer 1 $calc(%i * 5) join $gettok($1-,%i,32)
inc %i
}
}


ON *:CONNECT: if ($me == BOT_NAME) { autojoin %botchans }

Would you know a way for me to make a !leave command with all that also?