Squiso е безплатен, мощен инструмент за автоматизация, който ви позволява да персонализирате своя поток в Twitch с помощта на прости скриптове.

How to Play an Audio File When a Twitch Hype Train Starts

This is a simple example that simply plays an mp3 audio file as soon as a Twitch Hype Train starts in the channel.

Пример за скрипт

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 onTwitchHypeTrainStarted(OnTwitchHypeTrainStartedData data, API api) throws SquisoException { // Play an mp3 api.playAudio("choo_choo_hype_train_started.mp3"); } }