Scripts › VIP Shoutout List - Add
Overview
Mod utility to dynamically register VIP streamers into shared storage for automated incoming chat shoutouts.
script.sayl
# Command: !addvip
# Description: Moderator command to add a user to the auto-shoutout list

# Security: Only broadcaster and moderators can run this command
JUMP "authorized" IF "{isMod}" == "1"
REPLY "@{sender} - Only moderators can use this command."
EXIT

LABEL "authorized"
# Check if a target username was provided
JUMP "valid_user" IF "{Word1}" != ""
REPLY "Usage: !addvip <username> [optional custom message]"
EXIT

LABEL "valid_user"
# If Word2 is provided, save custom message; otherwise default to "1"
JUMP "with_custom_msg" IF "{Word2}" != ""
WRITE "1" TO JSON "shoutout_list.json" KEY "{Word1}"
REPLY "Added @{Word1} to the auto-shoutout list! ⭐"
EXIT

LABEL "with_custom_msg"
SET customText = "{Word2} {Word3} {Word4} {Word5}"
WRITE {customText} TO JSON "shoutout_list.json" KEY "{Word1}"
REPLY "Added @{Word1} with custom shoutout: \"{customText}\" ⭐"
EXIT
Reviews (0) 4.7 / 5.0
Sign in with Twitch to leave a review.
No reviews yet.
Download .zip
Clicking Install sends the package to your desktop app via the yip:// protocol.
Details