Fixed a bug preventing the bot from joining a channel