Hi so I want to create some timers about games that only activate when I have that game set as my category.
For example when I playing the Bannerlord Twitch Intergration and i want my Documentation to appear for the chat every now and then I would like it too only appear when i’m playing Bannerlord and not when I’m playing something far different.
thank you in advance
Emily
June 1, 2023, 7:06am
2
Hey @agitated_panda !
Have a look here:
Hey @mrfigg !
Here’s the solution, put this in your timer’s message:
$(eval g=`$(twitch $(channel) "{{game}}")`; b=[`SPECIFIC_GAME1`,`SPECIFIC_GAME2`];b.includes(g)?`MESSAGE_IF_SPECIFIC_GAME`:` `)
Replace SPECIFIC_GAMES, make sure their syntax is the same as Twitch’s, you can add as many games as you want as long as you don’t exceed 500 characters for the command, just respect the syntax of the code I wrote.
Replace MESSAGE_IF_SPECIFIC_GAME too with your message.
Hey @John_Doe !
I assume you want to use the !commercial command inside a Timer since you want to automate the response whether it is to run a commercial or the subscribe message.
Sadly this won’t be possible without some concessions. As you can’t edit Timers from the chat, you can’t change the alias of it depending of the game: my first idea was to create a Timer that would be triggered a bit before the commercial Timer to check the game and update the commercial Timer alias if needed, in whic…
Please use the search bar before opening a new topic, searching for “timer game
” gave me those results.
Thank you for this.
If I was to make it for only 1 game would I just remove `SPECIFIC_GAME2
Thank you
And say the game is Mount & Blade II: Bannerlord does that just get written as Mount_&_Blade_II:_Bannerlord?
Emily
June 2, 2023, 9:46am
5
No, write it the same way Twitch writes it, so if it doesn’t have underscores, don’t use underscores.
system
Closed
June 16, 2023, 9:46am
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.