Quick and dirty way to check if a user is a subscriber/mod if tags aren't given?

I know on regular message events, for example, you get tags you subscribe to. I get display-name, subscriber, and mod tags on these.

However, when one whispers your bot, you do not receive these tags. The whisper is sent as an unknown event with no tags, just the user nick and the message.

To be exact, here’s the raw line you get:
UnknownEvent(line=:eziana!eziana@eziana.tmi.twitch.tv WHISPER ezianabot :hi)

I would like to possibly see if it’s possible to request tags from a nick, or is there an easy way to do this?

The reason I want to do this is because I want to disable my whispers as a streamer for some pretty obvious reasons. Although I don’t want to punish the mass because of a few rotten eggs, so I’ve devised a plan to tell close friends and moderators to instead whisper my bot. The bot will see these whispers and forward them to my terminal view, emulating the whisper environment, pictured below. I’ve decided I’ll only forward mod whispers to the terminal view as well, perhaps in the event if my users were to ever figure out you could spam my terminal like this.

No quick and easy way, but you can have your bot check to see if they’re in your subscriber list via the API, and then forward the message if they are.

Here’s the issue,

  1. If I make an API call, I’m already delaying the time it takes from that whisper to get to me, because it must download additional resources.

  2. If they send multiple whispers in a relatively short time, there’s no guarantee which order they get verified and forwarded, so I’d have to implement a queue with additional overhead management to make sure the whispers come in the correct order.

Alternatively you can download your sub list .csv and compare it against that, then there’s no download time.

You’ll have to maintain that list for current subs though.

There’s no way to have a /w include subscriber status on your channel though, so you’ll need some workaround.

1 Like

I’ve determined what I’ll do.
Thanks for the suggestions

Here’s what you need:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.