I wish to God in Heaven I knew what all that jargon you are spewing meant.
And I don’t know how to get a TMI_TOKEN from anything other than a Third Party Service because I never found anything in the Twitch documentation that explained how to get one in the correct way. Maybe instead of just pointing out the flaws (which you are really good at, you’ll make a great parent), you might also provide links to the correct way of doing things.
Finally, I can’t stress this enough: Just getting this working took enormous effort. Far more effort than should have been necessary. So if you’re not too busy, maybe you could spend some time improving the documentation. Or you could keep doing things the way you’ve been doing them. Seems to be the current trend.
Right now, I have working code, and that trumps everything. Also, it’s on github, so anyone can fork it, fix it, and submit a pull request. You’re focused on the wrong problems.