Squiso는 간단한 스크립트를 사용하여 Twitch 스트림을 사용자 정의할 수 있는 무료의 강력한 자동화 도구입니다.

How to Create a Twitch Chat Announcement Using Keyboard Shortcuts

This script example registers and listens to the keyboard accelerator CTRL + NUMPAD 0 and then sends a Twitch chat announcement.

스크립트 예제

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 String registerKeyboardAccelerator() { return "CTRL+NUMPAD0"; } @Override public void onKeyboardAccelerator(OnKeyboardAcceleratorData data, API api) throws SquisoException { if (data.getAccelerator().equals("CTRL+NUMPAD0")) { // Create the chat announcement message SquisoString announcementMessage = new SquisoString("Please follow me on socials! youtube.com/squiso ⭐ twitter.com/squiso ⭐ tiktok.com/squiso"); // Send the chat announcement api.sendTwitchChatAnnouncement(announcementMessage); } } }