Squiso er et gratis, kraftig automatiseringsverktøy som lar deg tilpasse Twitch-strømmen din ved hjelp av enkle skript.
Slik viser du Windows-systemvarsler fra Twitch-hendelser
Dette eksemplet lytter til forskjellige Twitch-hendelser og viser Windows-systemvarsler.
Eksempel på skript
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.*;
import com.squiso.sysinfo.*;
// Important - Please do not change the row below - otherwise you will get a compilation error!
public class Script_Example extends SquisoScript {
    
    @Override
    public void onTwitchChannelPointRedeem(OnTwitchChannelPointRedeemData data, API api) throws SquisoException {
        // Compose a notification title and message
        SquisoString title = data.getUserName();
        SquisoString message = data.getRedeemText();
        // Show the "error" notification
        api.showSystemNotification("info", title, message);
    }
    @Override
    public void onTwitchChannelFollow(OnTwitchChannelFollowData data, API api) throws SquisoException {
        // Compose a notification title and message
        SquisoString title = new SquisoString("New Follower!");
        SquisoString message = new SquisoString(data.getUserName() + " just followed the channel!");
        // Show the "info" notification
        api.showSystemNotification("info", title, message);
    }
    @Override
    public void onTwitchSubscription(OnTwitchSubscriptionData data, API api) throws SquisoException {
        // Compose a notification title and message
        SquisoString title = new SquisoString("Twitch subscription!");
        SquisoString message = new SquisoString(data.getUserName() + " just subscribed with the message: " + data.getMessage());
        // Show the "warning" notification
        api.showSystemNotification("warning", title, message);
    }
}
    