The extension allows the users to request songs for Just Dance streamers.
The streamer can configure the extension with the game version, if they have Just Dance Unlimited as well as banning certain songs from being requested. All this has been done on the review channel already. Then the viewers can request songs from that list in the panel / video component (both are the same just different html to differentiate)
To build the extension you need the following:
- NodeJS v11+ (Tested with 16.6.2)
- Yarn (Tested with 3.0.1)
# Install Dependencies
yarn install
# Server Environments
# - prod: Production Server
# - dev: Development Server
# - local: Local Test Server
# Build minified (Will create extension.zip in dist/rollup/)
SERVER=prod yarn deploy
# Build non-minified
SERVER=prod yarn build
# Build with file watch
SERVER=prod yarn watch
Got to https://dev.twitch.tv/console/extensions/nv9ue0u2753fk3n1n9ghrvd28e3r9v
(Twitch Developer Console).
Manage the version to develop on / clone the latest one and change the Testing Base URL
in Asset Hosting
.
This however should not be needed if static assets are hosted on http://localhost:8080
and the previous version has been cloned.
Hosting assets statically on localhost
yarn server-static
If the extension can't load it is probably due to the fact that twitch only allows https
connections. So either you need a ssl certificate for localhost or you can enable insecure localhost. This can be done as follows:
- Navigate to
chrome://flags/#allow-insecure-localhost
- Change the flag to enabled
- Restart your browser
Documentation on this topic can be found here.
The ESB (Backend Service) should be available 24/7.
Viewer Walk-through:
- Go to the channel.
- Search for a song in the search
- Click on a song
- Click 'Request Song'
- Click 'Request Song' again to see that you've reached the maximum of requests
- Revoke Permissions. Extension should reload and ask for permissions.
- Grant Permissions to see the songlist again
- Switch Tab to Queue and see the queue status and which songs have been added to the queue
Live Configuration Walk-through:
- Open the streamer dashboard
- See that the song appears in the list
- Click 'pick next' on the song to select it
- Toggle the queue.
- Now try to request a song again. It should not work.
Configuration Walk-through:
- Open the configuration page of the extension
- Navigate to the Game Tab and change the Game Version (Song list on banlist tab should update)
- Toggle Unlimited (Song list should update)
- Navigate to the banlist Tab and check some songs and click 'Save'
- Reload the viewer page
- Search for a song that has been banned (should not appear)
- Un-check the same song and click 'Save'
- Reload the viewer page
- Search for the song and it should appear again
Chat-Integration Walk-through:
- Toggle on Chat-Integration (if not already) in the ChatIntegration Tab and click 'Save'
- Go to the review channel (Make sure there are songs banned and that the queue is empty)
- Send the following message: '!banlist'. A message from JustDanceRequests should appear
- Send the following message: '!sr Hello World'. On the Live Configuration Page the Song 'Hello World' should appear after max 5 seconds.
- Select the Song / click on it. A message from JustDanceRequests should appear in the chat.
- Click on 'Clear Queue' on the Live Configuration Page. A message from JustDanceRequests should appear in the chat.
- Open / Close the Queue on the Live Configuration Page. A message from JustDanceRequests should appear in the chat.