Twitch
OBS
StreamerBot
Table of contents
- Description
- Import Code
- Setup
- URL Parameters
- Example: Post Receipt To Discord / Bluesky
- Example: Hide/Refresh Browser Source
- Changelog
Description
Print a recipe in OBS that summarizes that stats of your current Twitch stream.
Import Code
U0JBRR+LCAAAAAAABADtPdly6siS7xMx/0Ccebwtt/alI+bBYFbbHBuMAF13TNQm0EECGgkw7uh/v1kSYhECg+3T3WeiHWEbq1RVWblXZlb59//+r0LhS8Ai9OWXwu/8D/hzjAIGf355WnoRGRZajDBvGn35ad2M5tFwMuMvRGgZILZpWLBZ6E3GvEW6Eq+kTQNlIZnBEOvG+jiMZnPC/wx/KQyjaBr+8vPPyWBXAy8azvGVN/k5iqf/v1ky/dUwCvxdGCat+fiarMccz30/bQu8sRfMA3sDDW/kbX/Eb3yhaG+1KAEEnvw7eVJIm+Jmj3KQsUUowaoqEMm0BNXQLQGpriZozNIsl1mqIckpcHG33+ZszvYBi5+zMcI+42MCCtheywvx55RVZpOg5oXRZLY6/dIDG1NvPICXXOSHe2+lBPz3PgV/LSgFoVAaoqhwz8IQDVi4B/NgNplPjxM+wZa/RKsQUJ837wyN6STYEOWgnUzGZD6bsXGU1xrNvMEAiLZLiQw1dihiSJqrGVQURKSZgqooRMCGzgRVZNQyVFFXTX0X8mSK1ZQjRlKUbMtRumzRHqZs8utu6x/bP37dQ9QhW+Ut5n2kirtmpOqgfcZcBrgm7ACIuLn0y/Nz1wOCLcPn53uPzCbhxI2umuWn5+fKDMBaTmYjXX1+XqggzIqoSNbzcxCSycz38BX1/S/7Q/6anR+vIlaa0Hh5tNec4oAMOor/Sqt29HUp3maf3Y2aC1x98ftKa4pl7fVuRH0c2CvUvTduHqcSkf25syp+dXpU5O1YdsS70RR+q9A+aZbGRakfvEz7q+I3XK28klXxplMeNjA8w0EH2sNmybse1EvFJe02Qhh3QJQWjK+N61VbBRjmMMcC+45PxgCbrA4e2tfefVtd3n0rexzmegn614or1HOGtNrh/eG3/61ea4okiOHzSGANnWpzCG0+8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UDWPOgL0kf68CSucBnj0/rzfCV9McHv9tjnwvWuWemSOT8ZjF2/HkwLe4/hJyfqRfR+hICUag2JFAGUiGSqgmIAXIKmKmWRKoHEIPD/ieQUfVfB8VTwbbtHcICGC8QNC4EA3ZuDD0KOOfCuuL6AuTWSFCI1ZAhZDMGBuHQ1BLaEwLIYMfoJ2iCddFs8KNxwMFlHcowsjhaPVeyTGIoYquyQQqU5Mf45QFJOumoGNJlTHBgPHPD+a+UyMp5yM8jfu0mDtjYW4kLn4PDK/r8bG/THDYQsucuOuSt/7+PHseFwrPX2bsN8B3xC+UeIaG5y8PMH5YH0/n0cNsMmWzyGNhcR5Fk/Hzl58yvfiZS95rPRpv8XhPLrfJaLHkFmeTZchSCd4Mw1+fJnOstj1myQrHE4LIEJ4l7/7Bf/2RE7Pi/kH4NLmeDcIj2P5EcZYMBWHXApZSqSKoTHMFZEiiQEVmUsNSkGqp7xLng2sHPkGcjXeIc/kFgfvLQClvxLU9x0ls8pd3GzMNq7IE1ktxGb8ZQ3IFS8aGYKq6pJguUS3ytxFJ9QNI22fzQiqqH0egAdiTTcMSgPd0QZUoeFqaiMF9dS2Lisgy2KFd/IsQqL8DgYurvX+CcoieY9bVUgzNlanAdBV0vUH5JXsqEZim6ETHFpGMd4nj98DLd0raKRbTmCqrAqYaBY1kyAJWDeAPZpqSQV3LZJc5ip+QtJPOWepbSbuzFrYzdvpxPV86V5J3e+Nf1lx85xv2J2SUpNqyWbsj/xHoGHiwSw4AqUmeKH24ZDiECVjUZrPFOv912FjyPTaO9hsjL0jf50/W/8Zn+9+G1vdUfGEv08ksYpSnDWObeCVfrW+AOPynQHErEIJF6IrfxPfHfwAep4ZFC2kAAA==
Setup
-
Copy the import code from above and import the content
-
Go into Streamerbot and head to the tab
Servers/Clients -> WebSocket Server
and start the websocket server. Leave the adress at127.0.0.1
and the port at8080
. CheckAuto Start
as well. You can set a password, but you don’t have to. If you do, make sureEnforce for All Requests
stays unchecked. - Copy the URL:
https://tawmae.github.io/overlays/TwitchReceipt.html
-
Go into your OBS, create a browser source and paste the URL in there. Set the site to about 450x1200. You might want to fiddle around a little to see what fits.
- Done 🥳
To have the events in multiple scenes, don’t create an individual browser source in every scene, but instead create a new nested scene and put just a single browser source in there. Then place that scene into all your other scenes. This way you won’t have to create 20 browser sources for 20 scenes.
URL Parameters
You can add ?font=Arial
at the end of the URL to choose a custom font of your choice.
Example: Post Receipt To Discord / Bluesky
To post the receipt to a platform of your choice, you can use a OBS Take Screenshot
subaction. Simply pick your browser source and set a filepath. You can then use the %screenshotFile%
variable that is populated by the subaction.
Example: Hide/Refresh Browser Source
To hide the receipt, you have to refresh the browser source. The [Twitch Receipt] 1 - Print Receipt
action has a disabled OBS Raw
subaction in there that can refresh the browser source. Edit the subaction and replace Your Browser Source
with the name of your browser source. And you’re done!
The tracked stats are getting saved into non-persisted variables. This means all stats are getting reset once you close Streamer.bot
Changelog
Date | Changes | Version |
---|---|---|
December 04, 2024 | Excluded bot and broadcaster account from chat stats // moved Cheers from Chat Messages to Data | 1.0.1 |
December 03, 2024 | Release | 1.0.0 |