this is a nice auto join script for bots, all you have to do is type ?auto add|del|list #channel to add delete or list channels set for the bot to auto join when it connects, make sure to replace A_A with your own nick though, wont even need to go into the bot's mirc to edit the startup channels =)
on *:TEXT:?auto*:#: {
if ($nick == A_A) {
if ($2 == add) {
if ($istok(%auto.channels,$3,44)) {
msg $nick Channel already exists.
}
else {
set %auto.channels $addtok(%auto.channels,$3,44)
msg $nick Added $3 to my auto-join list.
join $3
}
}
elseif ($2 == list) {
msg $nick Current channels on auto-join: $replace(%auto.channels,$chr(44),$chr(32))
}
elseif ($2 == del) {
if ($istok(%auto.channels,$3,44)) {
set %auto.channels $remtok(%auto.channels,$3,44)
msg $nick Removed $3 from my auto-join list.
part $3 Removed by $nick
}
else {
msg $nick Channel doesn't exist.
}
}
}
}
on *:connect: { join %auto.channels }