Message Command Incorrect
daLoach20 opened this issue · comments
daLoach20 commented
In the irc.py module, when you're getting the data from the irc server, I believe that the text syntax is incorrect.
It is currently:
if text.startswith('PRIVMSG'):
However, the way that twitch formats these texts is like:
<nick>!<nick>@<nick>.tmi.twitch.tv PRIVMSG <chan> :<message>
So we need to safely split the data and get the 2nd index and check that.
Simon Bordeyne commented
good point
I'll test a few things, probably will end up with a regex for it
Simon Bordeyne commented
Addressed in commit 8f42164