Connects to a Twitch chat and listens to command to switch scene from broadcaster and/or moderators.
- NodeJS - NodeJS v.10 and above
- OBS-Websocket Plugin
Run npm install to download dependencies.
npm i
Configure OBS.
Tools -> Websocket server settings
Check "Enable Websocket server"
Check "Enable authentication" [RECCOMENDED]
Enter a password
rename the .envtemplate to .env and configure .env file
TWITCH_CHANNEL="" // <-- Your twitch username
COMMAND_COOLDOWN=5 // <-- Command cooldown options in seconds
OBS_URL="localhost:4444" // <-- OBS Plugin url. "localhost:4444" is the default
OBS_PASSWORD="" // <-- OBS Plugin password
Configure line 11 on bot.js if you want to use the "!scene " command to a different command name
const COMMAND_NAME = "!scene"; // Command to type in chat.
To run bot.js in command prompt / terminal
node bot.js
The bot will automatically exit when OBS is closed or if you disable the websocket plugin