I have a chatbot and a !stats command. I noticed with 7tv chrome extension disabled I cant reproduce this issue. But when I have 7tv enabled, my stats command is broken.
The reason why:
When you do "!stats username" the first time, it works without issue.
When you do "!stats username" again, there seems to be a hidden special character which is appending itself to the end of the message.
This is breaking the functionality of my stats command because that hidden special character is being passed to my api even though im not typing it. I'm just copy pasting "!stats username" as is.
I went into 7tv chat settings and the only relevant settings I can see are "Hold ctrl+E to keep message in chat box after send" and "bypass duplicate message check" which are both disabled. Im also a moderator so there is no duplicate message filter for me.
But when I disable 7tv on my web browser, I cant replicate the issue. I cant replicate the issue on mobile twitch app either. So it has become apparent that the issue is coming from the way messages are being sent while I have 7tv chrome extension enabled. And I can only replicate the issue every other time I do the !stats command. So it seems like some kind of spam bypass thats altering every other duplicate message so twitch doesnt detect the same message twice. Is there any other setting that is relevant to this?
My API logs:
Sending username to API
Sending username to API
I dont know if discord formatting will preserve it. But on the first line there is 1 space between username and to. On the 2nd line there is 2 spaces between username and to.
When I copy the 2nd line into notepad++ it shows
Sending username [] to API