Skip to content

Mirrors events from Twitch PubSub socket, and sends them to the local SLCB socket

License

Notifications You must be signed in to change notification settings

nossebro/TwitchPubSubMirror

Repository files navigation

TwitchPubSubMirror

A Streamlabs Chatbot (SLCB) Script that uses websocket-sharp to mirror events from Twitch PubSub socket, and sends them to the local SLCB socket

For a local event listner, you can install SocketReceiver, and subscribe to the TWITCHPUBSUB event.

Script could also be used as a stand alone template, modifying TwitchPubSubAPIEvent logic for PubSub topics.

Installation

  1. Login to Twitch with your streamer account, and register a new app at https://dev.twitch.tv/console/apps, noting the client ID. You can use https://twitchapps.com/tokengen as redirection URL.
  2. Generate a token at https://twitchapps.com/tokengen using the Cliend ID from step 1, and channel:read:redemptions channel_subscriptions bits:read channel_read as scope. Note the token.
  3. Install the script in SLCB. (Please make sure you have configured the correct 32-bit Python 2.7.13 Lib-directory).
  4. Run python27.exe -m pip install https://github.com/nossebro/PythonEventTemplates/archive/refs/heads/main.zip
  5. Review the script's configuration in SLCB, providing your streamer account login, client ID and Token.

About

Mirrors events from Twitch PubSub socket, and sends them to the local SLCB socket

Resources

License

Stars

Watchers

Forks

Languages