Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 2.28 KB

File metadata and controls

67 lines (53 loc) · 2.28 KB

OBS Twitch Alerts Action

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.

Demo

YouTube: OBS Twitch Alerts with C# and Streamer Bot

Basic Installation

Click Import in streamerbot and drag the file OBSTwitchAlerts.sb into the Input String box.

Advanced Installation

  • Create a new Queue in Action Queues -> Queues
    • Name: Channel Alerts
    • Make sure to check Blocking
  • 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
  • Create Triggers in Channel Alert Action
    • 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.cs and 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 type
      • GetChannelEvent() if you need to, change the alert channelEvent text to display in OBS for each event type

Required References (found in installation path)

  • NAudio.dll
  • NAudio.Core.dll
  • NAudio.Wasapi.dll
  • NAudio.Vorbis.dll
  • NAudio.WinMM.dll
  • NAudio.WinForms.dll

Required framework References (found in .Net installation folder)

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