Issues with bot connecting to mass channels

When you join a channel, Twitch sends you every chat message that is sent to that channel (other than your own messages, which Twitch doesn’t return to you) to your connection. The more channels your bot joins, the more traffic twitch sends on that connection, and eventually it will reach a point where your connection can’t keep up with handling that traffic and so Twitch kills the connection.