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

How to Warn a Twitch Chat User

This script example listens to all Twitch chat messages and if a user has written a message only uppercase then it gives them a chat warning.

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 onTwitchChatMessage(OnTwitchChatMessageData data, API api) throws SquisoException { // If the user's message is only uppercase if (data.getMessageText().isUpperCase()) { // If the user is the broadcaster or a moderator, it is okay, end here if (data.isUserBroadcaster() || data.isUserModerator()) { return; } // For everyone else, send them a warning message SquisoString warningMessage = new SquisoString("Please refrain from only writing uppercase messages!"); api.sendTwitchChatUserWarning(data.getUserID(), warningMessage); } } }