Inspired by the fantastic tutorial by Mustached Maniac.
Video Link: How To Make Your Own Twitch Alerts in OBS with Streamer Bot
This code should be only followed after checking out and following the tutorial seen there.
YouTube: OBS Twitch Alerts with C# and Streamer Bot
Click Import in streamerbot and drag the file OBSTwitchAlerts.sb into the Input String box.
- Create a new Queue in
Action Queues->Queues- Name:
Channel Alerts - Make sure to check
Blocking
- Name:
- Create a new Action in
Actions- Name:
Channel Alert - Enabled:
Checked - Group:
Channel Events - Queue:
Channel Alerts - Random Action:
Unchecked - Concurrent:
Unchecked - Always Run:
Unchecked - Exclude from Action Queue:
Unchecked
- Name:
- Create Triggers in
Channel AlertAction- Twitch Gift Bomb
- Twitch Gift Subscription
- Twitch Follow
- Twitch Subscription
- Twitch Resubscription
- Twitch Cheer
- Create Sub-action
Core->C#->Execute C# Action- Copy the contents of the
OBSTwitchAlerts.csand paste it in the Code window. - Modify any user properties
- AudioDevice (null for system default)
- SoundPath (path where alert sound files are located)
- AlertScene (the name of the OBS Scene where the alert sources are located)
- AlertSoundFiles (map of sound files and each alert type)
GetTwitchMessage()if you need to, change the messages sent based on event typeGetChannelEvent()if you need to, change the alert channelEvent text to display in OBS for each event type
- Copy the contents of the
- NAudio.dll
- NAudio.Core.dll
- NAudio.Wasapi.dll
- NAudio.Vorbis.dll
- NAudio.WinMM.dll
- NAudio.WinForms.dll
Usually located in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ but it may vary based on specific version and build installed
- System.dll
- System.Core.dll
- System.Linq.dll
- System.Linq.Queryable.dll
- System.ComponentModel.dll
- System.ComponentModel.EventBasedAsync.dll
- netstandard.dll