SAMMI Stuff

Find all the information you need to set up Deck Hopper and my extensions for your SAMMI.

Random Bunny

SAMMI Extensions

Chat Stats

Get on Ko-fi
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7

This extension allows you to gather, analyze, and visualize Twitch VOD chat data. It’s easy to install, highly customizable, and requires no prior setup!

Features

  • Retrieve chat transcripts from recent or specific Twitch VODs.
  • Gather statistics like total message count, unique participants, frequently used words, and most active users.
  • Generate a word cloud based on chat messages.
  • Create a participation tree of top chatters.
  • Generate a chat summary using ChatGPT.
  • Automatically post collected data to Discord.
  • High level of customization for visuals and output.

Unofficial Twitch API

This extension uses an unofficial Twitch API endpoint. Changes in the API may cause the extension to stop working or require updates. It does not use your Twitch credentials.


Setup

  1. Update SAMMI Core and Bridge to the latest version via SAMMI Updater.
  2. Install the extension. You can follow the Extension Install Guide.
  3. Ensure Bridge is running at all times when using the extension.

OBS Dock Requirement

This extension only works with Bridge running in the OBS dock. If running in a browser, you must keep the Bridge tab active at all times.

  1. Open the red Settings button and fill out the commands for Twitch Chat Stats Init, Word Cloud Settings, and Participation Tree Settings.

Twitch Chat Stats Init

Box NameDescription
Twitch Channel NameYour Twitch (streaming) channel name.
Twitch Bot NameName of your Twitch Bot for message filtering purposes.
Primary Stream LanguageSelect the main chat language (English stop words are automatic).
Generate Word CloudEnable this to generate a word cloud image.
Generate Participation TreeEnable this to create a participation tree image.
Generate SummaryEnable chat summary generation (ChatGPT extension required).

Twitch Chat Stats Word Cloud Settings (Optional)

Customize your word cloud's appearance. Defaults will apply if left blank.

Box NameDescription
WidthImage width (default: 600).
HeightImage height (default: 600).
Background ColorWord cloud background color (default: transparent).
Font FamilyFont family for the text (default: serif).
Font ScaleSize of the largest font (default: 25).
Max WordsMaximum number of words displayed (default: 100).
ColorsArray of word colors in hex format (defaults to random colors if 'Random' box is checked or this box is empty).

Twitch Chat Stats Participation Tree Settings (Optional)

Customize the appearance of the participation tree. Defaults will apply if left blank.

Box NameDescription
Max ViewersMaximum viewers to display in the tree.
Display Labels AsDisplay labels as username text or profile image with username.
Background ColorBackground color (or varied with 'Random' setting).
FontFont for tree labels.
Text ColorColor of the text in the tree labels.
SpacingSpacing in pixels for the rectangles.
Border WidthBorder width in pixels for the rectangles.
Border ColorColor of the borders around the rectangles.

Get Chat Stats from Last Stream or Specific VOD

Retrieve analytics from your latest stream or a specific Twitch VOD.
The example premade button comes with an optional automatic post to Discord.

Ensure Proper Settings

Ensure the Settings button is properly configured before running this command.

Box NameDescription
Twitch VOD IDTwitch video ID to extract chat data from (leave blank for latest VOD).
Save Variable AsVariable name to save the result object.

The Save Variable As object will have the following keys:

KeyDescription
totalMessagesTotal number of chat messages sent.
topWordsArray of most frequently used chat words (up to 100). Although stop words are eliminated, some may still appear.
wordCloudFull path to the word cloud image file.
uniqueChattersNumber of distinct chat participants.
topChattersArray of top chatters (up to 100).
participationPercentageObject listing chatters by percentage contribution.
participationTreeFull path to the participation tree image file.
summaryChat summary generated in the primary stream language.
vodLinkFull link to the Twitch VOD.

Example result object:

{ 
  "totalMessages": 101,
  "vodLink": "https://www.twitch.tv/videos/123456789", 
  "participationPercentage": { 
      "christinna": "16.83",
      "silverlink": "29.70",
      "sebas": "23.76"
  }, 
  "summary": "Hey hey! During my stream we played Dark Souls 3 and we kept dying...", 
  "topWords": [ "DIED", "game", "dog", "souls", "played" ], 
  "topChatters": [ "christinna", "silverlink", "sebas" ], 
  "participationTree": "e:/stream/sammi core/Ext/Twitch_Chat_Stats/participationTree_123456789.png", 
  "wordCloud": "e:/stream/sammi core/Ext/Twitch_Chat_Stats/wordCloud_123456789.png", 
  "uniqueChatters": 10
}

Generate Sample Word Cloud

This command quickly generates a sample word cloud or participation tree based on the current settings.

Customization Test

Use this to test your customization settings for the word cloud or participation tree.

Get Help

Please see Troubleshooting for common extensions issues.

Previous
Auto Deck Backup