I’m trying to code a simple Python bot that engages my users when they enter a keyword to put them into a queue. As I work through that queue to get them into the game I’m playing, it will whisper the next set a code.
While I have the bot successfully logging into chat, responding to chat messages, parsing users and messages, identifying subscribers, etc. … no matter what I do I cannot seem to get it to successfully send a whisper to either myself or one of my chat users.
I am attempting to use the PRIVMSG #channel :/w user message encoded to UTF-8 and sent to the irc.twitch.tv socket per documentation I’ve read.
I would love another way around it, but I don’t know of another solution. If I have a username stored in a queue with a code I want to get to them privately… how else can I go about doing that without the entire chat seeing the private code?
I did a copy/paste of /w commands from one window to another tonight while I contemplate what to do next. The bot kept failing to respond to commands after a while constantly. It would just stop listening to the channel (and yes, I’m doing the ping/pong thing)
Whispers from bots are extremely likely to fail due to spam prevention measures. That’s why its not recommended to use whispers from any type of bot system, and extensions or an external website are the preferred methods.