You have 2 errors on your code on the 2nd line:
Error #1: You have to put a space between if and brackets.
Error #2: You have to add a # character to your bot's name channel
Here you have the correction of your code:
on *:TEXT:!join:#: {
if ($chan == #skitbot) {
join $+($chr(35),$nick)
}
}
Or a another code that works exactly same:
on *:TEXT:!join:#skitbot: {
join $+($chr(35),$nick)
}
Thank you so much! Works like a dream, but it be possible to make it only join channels who's names are in a list?