Very simple Twitch IRC Bot failing

Agreed but what happens when the client sends a message before they are technically joined. In a real IRC network those messages would either be rejected unless the channel is set -n or queued like a split.