ComfyJazz is a tool to play easy-listening, comfy, computer-generated Jazz music, with built-in Twitch and YouTube chat integration. Notes are played along randomly and for each chat message on your channel.
All credits to the original project go to @Instafluff and all participants in the original project. Instafluff can also be found on Twitch at ttv/Instafluff
Before you begin, ensure you have met the following requirements:
- Download and install Node.js matching for your operating system.
- The LTS (Long-term Support) version is recommended for most users.
- Navigate to the ComfyJazz folder.
- Run
npm installto install required dependencies.
- Run the application from the command line.
node index.js
- You should see a message like
Listening on 8901- Where 8901 is the port that ComfyJazz is listening on.
- Add a Browser Source to your broadcasting software (e.g. OBS).
- In the URL field, enter
http://localhost:8901?channel=yourchannel- Replace
yourchannelwith your Twitch username.
- Replace
- Enjoy!
Example:
http://localhost:8901?channel=zephsinxNotes:
- Keep the command prompt window open, as closing it will stop ComfyJazz.
- If you would like ComfyJazz to run as a Windows service and not have to keep a command prompt open, NSSM can be used for this purpose.
- To stop the application, press
CTRL+Cin the command prompt window, or simply close the command prompt.
To integrate ComfyJazz with YouTube Live chat, you have two options:
By connecting setting up Streamer.bot to your YouTube account, you can make ComfyJazz listen to events emitted by Streamer.bot when it detects a YouTube Live message.
- Set up Streamer.bot and log in with your YouTube account you use for streaming.
- Ensure your Streamer.bot WebSocket server is started, and using the default IP and Port.
- ComfyJazz does not currently support custom WebSocket URLs and ports.
- Run the ComfyJazz from the command line.
node index.js
- Add a Browser Source to your broadcasting software (e.g. OBS).
- In the URL field, enter
http://localhost:8901?useStreamerBot=true- If you get an error, re-check your settings.
- Enjoy!
Note: The server must be started after the YouTube stream has begun to have a valid stream Live ID. Future improvements will attempt to remove this requirement.
- Run the application from the command line and provide your YouTube Live ID.
node index.js -y YOUR_LIVE_ID
- You should see the following messages:
Attempting connection to YouTube chat with Live ID: YOUR_LIVE_IDListening on 8901- Where 8901 is the port that ComfyJazz is listening on.
- Add a Browser Source to your broadcasting software (e.g. OBS).
- In the URL field, enter
http://localhost:8901?useWebsockets=trueyourchannelis not needed but doesn't hurt anything if kept.
- Enjoy!
As the YouTube event listener run on the server-side, notes are triggered via websocket requests to the client-side.