Control OBS sources or have a source show up for a certain amount of time.
This script uses OBS plugin "obs-websocket"
git clone <repository-url>
- Change into the new directory.
npm install
npm run build
Edit config.json
to your own settings.
- Use https://twitchapps.com/tmi to get your oauth from Twitch for use with chat commands.
We recommend using your main Twitch BOT account for this, but if you do not have a Twitch Bot account just use your Main Twitch Account.
To add a new command just add:
{ "command": "YOUR CHAT COMMAND NAME", "source": "YOUR OBS SOURCE NAME", "duration": 30, "cooldown": 120 },
time in seconds
There's only one command besides your own commands: !source sourcename
(to toggle on/off a source)
Run the app by running: npm start
.