Squiso is a free, powerful automation tool that lets you customize your Twitch stream using simple scripts.

How to Make a Twitch Poll That Auto-Starts a Steam Game

This script example listens to when Twitch polls ends and then matches the winner option towards a list of steam app executions.

Script Example

import com.squiso.*; import com.squiso.exception.*; import com.squiso.scripting.*; import com.squiso.scripting.data.*; import com.squiso.keyboard.*; import com.squiso.twitch.*; import com.squiso.datatypes.*; import com.squiso.utils.*; // Important - Please do not change the row below - otherwise you will get a compilation error! public class Script_Example extends SquisoScript { @Override public void onTwitchPollEnded(OnTwitchPollEndedData data, API api) throws SquisoException { // Log the results api.log("Poll \"" + data.getTitle() + "\" ended and the winner was \"" + data.getWinner() + "\"."); // If the winner is "CS GO" if (data.getWinner().equals("CS GO")) { // Start steam.exe with game ID 730 api.exec("C:\\games\\steam\\Steam.exe steam://rungameid/730"); } // If the winner is "Cyberpunk 2077" if (data.getWinner().equals("Cyberpunk 2077")) { // Start steam.exe with game ID 1091500 api.exec("C:\\games\\steam\\Steam.exe steam://rungameid/1091500"); } } }