Commands
Learn how to use LYTE commands to queue music in your livestream.
Basic Command Syntax
The basic command format is:
<PREFIX><QUEUE_COMMAND> <VIDEO_ID>Default syntax: !queue <VIDEO_ID>
Where:
<PREFIX>is the command prefix (default:!)<QUEUE_COMMAND>is the queue command (default:queue)<VIDEO_ID>is the YouTube video ID
!queue Command
The default command to queue a song is !queue <VIDEO_ID>, where <VIDEO_ID> is the ID for the YouTube music video (everything after ?v= in the URL).
Example Usage
If a viewer wants to queue a song with the URL https://www.youtube.com/watch?v=dQw4w9WgXcQ, they would type:
!queue dQw4w9WgXcQFinding Video IDs
From YouTube URL:
- Full URL:
https://www.youtube.com/watch?v=dQw4w9WgXcQ - Video ID:
dQw4w9WgXcQ(the part after?v=)
From YouTube Music URL:
- Full URL:
https://music.youtube.com/watch?v=dQw4w9WgXcQ - Video ID:
dQw4w9WgXcQ(the part after?v=)
From Short URL:
- Short URL:
https://youtu.be/dQw4w9WgXcQ - Video ID:
dQw4w9WgXcQ(the part after/)
Important: By default, this command only works with IDs of videos that are on YouTube Music; regular videos will not play. This is because YouTube blocks links in livestream chats.
Customizing Commands
Changing the Prefix
You can change the command prefix in the configuration:
- Open LYTE Settings
- Find the
PREFIXsetting - Change it to your desired prefix (e.g.,
?,lyte, etc.) - Save and restart
Examples:
?queue dQw4w9WgXcQ(with prefix?)lyte queue dQw4w9WgXcQ(with prefixlyte)
Changing the Command Name
You can change the queue command name in the configuration:
- Open LYTE Settings
- Find the
QUEUE_COMMANDsetting - Change it to your desired command (e.g.,
play,add,request) - Save and restart
Examples:
!play dQw4w9WgXcQ(with commandplay)!add dQw4w9WgXcQ(with commandadd)!request dQw4w9WgXcQ(with commandrequest)
Using Full URLs
If ALLOW_URLS is enabled in your configuration, viewers can use full YouTube URLs instead of just video IDs:
!queue https://www.youtube.com/watch?v=dQw4w9WgXcQNote: This feature is disabled by default because YouTube blocks links in livestream chats.
Command Restrictions
Rate Limiting
If RATE_LIMIT_SECONDS is set (not 0), users must wait the specified number of seconds between requests.
Example: If set to 30, a user can only queue one song every 30 seconds.
Membership Requirements
If REQUIRE_MEMBERSHIP is enabled, only channel members can request songs.
Super Chat Requirements
If REQUIRE_SUPERCHAT is enabled, users must send a Super Chat to request songs. The minimum amount is set by MINIMUM_SUPERCHAT.
Whitelist Restrictions
- If
ENFORCE_USER_WHITELISTis enabled, only whitelisted users can request songs - If
ENFORCE_ID_WHITELISTis enabled, only whitelisted videos can be requested
Ban Restrictions
- Users in
banned_users.jsoncannot request songs - Videos in
banned_IDs.jsoncannot be requested - If
AUTOBAN_USERSis enabled, users who request banned videos are automatically banned
Troubleshooting Commands
Command Not Working
- Check the prefix: Make sure you're using the correct prefix (default:
!) - Check the command: Make sure you're using the correct command name (default:
queue) - Check the video ID: Ensure the video ID is correct (11 characters, alphanumeric)
- Check restrictions: Verify you meet all requirements (membership, Super Chat, whitelist, etc.)
- Check rate limiting: Make sure you haven't exceeded the rate limit
Video Not Playing
- YouTube Music: Ensure the video is available on YouTube Music (not just regular YouTube)
- Video availability: Check that the video is not private, deleted, or region-restricted
- Banned video: Check if the video is in the banned list
- Whitelist: If whitelist is enforced, ensure the video is whitelisted
User Cannot Request
- Banned user: Check if the user is in the banned users list
- Whitelist: If user whitelist is enforced, ensure the user is whitelisted
- Membership: If membership is required, ensure the user is a channel member
- Super Chat: If Super Chat is required, ensure the user sent a Super Chat
Best Practices
- Clear instructions: Let your viewers know the command format in your stream description or overlay
- Rate limiting: Use rate limiting (30-60 seconds) to prevent spam
- Moderation: Regularly check and update your banned lists
- Whitelist: Consider using whitelists for exclusive events or member-only requests
- Test commands: Test commands yourself before going live
Example Stream Setup
For a public stream, you might use:
- Prefix:
! - Command:
queue - Rate Limit:
30seconds - Membership: Not required
- Super Chat: Not required
- Whitelist: Not enforced
Command format: !queue <VIDEO_ID>
For an exclusive member stream:
- Prefix:
! - Command:
request - Rate Limit:
60seconds - Membership: Required
- Super Chat: Not required
- Whitelist: Not enforced
Command format: !request <VIDEO_ID>