By TeaLeafShark • Category: moderation
# 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
yip:// protocol.