I looked through the new API and couldn’t find much on this topic, especially when compared to the v5 docs. I’m just wondering if there is a way to know if a command came from a user based on their channel status (sub, follower, moderator, normal viewer)?
IRC currently includes the information you need in message tags.
I’m seeing one for subs now, but not for followers. You’re referring to this correct?
Would you or anybody else be able to provide a code example oh how to tell when a message if from a user that is a sub or follower?
IRC doesn’t have the follower status as part of tags. As thats far tooo much data. And it’s useless to Twitch’s Core product (displaying chat with a follower badge for example).
If the chat is in followers only mode (most are generally speaking) then you know it’s a follower…
Ah okay, so there is no way for IRC to know who is a follower and who isn’t aside from entering followers-only mode?
Correct
Okay, thanks. And just to be sure I understand, is “user-type=mod” the channel mod that broadcasters assign?
Correct
How exactly do I pull in the tags so I can parse and use them?
Edit: Looking at chat-samples, I see the on_welcome method and how it requests for the capabilities. Once I add that to my class, how/where would I parse the response so I can check if a viewer is a sub or mod?
Sorry for all the questions, I’m a bit new to Python itself as well as IRC bots.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.