Supports cooldown, has a command to show all available video commands and more
- Add a new Browser Source
- Set the server URL as the URL field
- (optional) Add a chroma key filter so the videos can have a transparent background
- Copy
parameters.example.tstoparameters.tsand edit it as follows: - Follow the comments to configure the
parametersof the application - To setup the video commands, add entries to the
commandsarray, following the example- You should place your videos in the
/src/public/resourcesdirectory
- You should place your videos in the
- Copy
.env.exampleto.envand edit as follows: - Set up your twitch bot username, passwords and the server port
- Example:
TWITCH_BOT_PASSWORD="oauth:xxx" - Example:
TWITCH_CHANNELS="["#testchannel"]"
- Example:
- Install node.js, yarn
- Run
yarnto install the project dependencies - To build the app, navigate to the project root and run
yarn build - To run the app, navigate to the project root and run
yarn start - In development, you can combine both of the above steps by running
yarn dev. This will also auro-reload the app on any change- For this to run, you need to run once
yarn global add nodemon ts-node
- For this to run, you need to run once
- The server will run on the port specified
src/app.ts: the server, which runs withnodesrc/public: the public files, which will be used by the front-end
