Setting up a custom Follower-only command?

Wondering if there is a means to setting up a command where a user would type !command, but if they aren’t following User A and User B on Mixer, then they receive a message stating “You must be following User A and User B”. Otherwise if they are following User A and User B, they receive a different message. Is that possible?

If that isn’t possible, then is there a means of setting this up where the viewer has to be following the Streamer for the command to work? I can see “Regular” and “Subscriber”, I just don’t see “Follower”.

It is not possible to have follower-only commands (or subscriber-only for YouTube). We don’t support followers because we do not have that information when a command is processed and obtaining that information is expensive to lookup.

I don’t know how to do it on Mixer, however there’s a workaround on Twitch, posting it here in case people are looking for a solution for a follower-only command, since the title doesn’t specify it’s for Mixer and most users are on Twitch:

$(eval a=`$(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel))`; a.includes(`is not following`)?`$(touser) You must be following $(channel) to use this command.`:`COMMAND_RESPONSE_IF_FOLLOWER`;)

And if you want people to be following your channel as well as another one to use the command:

$(eval a=`$(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel))`; b=`$(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=OTHER_CHANNEL)`; a.includes(`is not following`)||b.includes(`is not following`)?`$(touser) You must be following $(channel) and OTHER_CHANNEL to use this command.`:`COMMAND_RESPONSE_IF_FOLLOWER`;)

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