Join more than one Channel
Brought to you by:
clearsthescreen
How can the Bot join more than one channel?
sub CHANNELS() { '#VtM' } works with no problem he is joining #VtM
sub CHANNELS() { '#VtM; #WtA' } dont work
sub CHANNELS() { '#VtM'; '#WtA' } dont work
in the best situation it work for one channel and it dont join the second channel
What iam doing wrong?
Greeting Mordekain
i forgot to say i use tge latest version
Hello Mordekain,
good spot! This is a bug in 2.0.1. I'll try to update the package soon. You're not doing anything wrong; the "join" event seems to take only one channel per command.
Until I publish the next alpha version, you could do this as workaround:
Use
to turn it into an array of channel names..
Then replace the line
$irc->yield(join => CHANNELS);
with this:Hi ClearsTheScreen,
now my Code is looking like this:
But now the Bot is not connecting to a channel :(