Commands based on category

Idea/Concept: In order for a certain command to work, the stream would need to be in a certain category.

Example: While playing Fortnite, the command !streamwins says “[Streamer] has gotten [amount] wins on Fortnite this stream, GGs!” But if the streamer is playing Minecraft and someone types !streamwins, it does nothing or says “Must be in the Fortnite category in order to work.”

Hey @squarethedev!

Here’s how you do it:

$(eval g = '$(twitch $(channel) "{{game}}"); g === 'Fortnite' ? '$(channel) has gotten X wins on Fortnite this stream, GGs!' : ' ';)

$(eval g = '$(twitch $(channel) "{{game}}"); g === 'Fortnite' ? '$(channel) has gotten X wins on Fortnite this stream, GGs!' : 'Must be in the Fortnite category in order to work.';)

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