Committed /u/Zephymastyx's fixes.

New twitch chat broke the old script. Zephymastyx provided a fix. There is some aesthetic work to be done but this fixes the functionality.