Please or Register to create posts and topics.

Streamer.bot HTML Display Overlay

Usage

Open the extracted HTML Overlay directory and open HTMLWindowsOverlay.exe to start the application.

You will see a quick dark flash and then your desktop will return to normal.

The HTML Overlay application is now running!

You should also now see an accompanying icon your system tray.

You can close HTML Overlay by Double-Clicking the tray icon at any time.

Configuration

Your Streamer.bot WebSocket Server must be enabled for the application to interact with your bot

Streamer.bot Connection

By default, the HTML Overlay will attempt to connect to your Streamer.bot WebSocket Server using the default settings, http://localhost:8080/.

If you have changed the hostport, or endpoint values of your WebSocket server, you can configure this by modifying the Content/index.html file within the HTML Overlay directory.

Included Overlays

The HTML Overlay zip above is preloaded with 3 overloay modules:

  • Splat!
  • Show Image
  • Emote Rain
You can customize the options for each module by modifying each respective .js file

Splat

Display a large paint splat on your screen.

Options

const CONFIG = {
  // The title of the Channel Point Reward that will trigger the effect
  rewardTitle: 'SPLAT',
};

Show Image

Display any image (from a URL) on your screen.

Options

const CONFIG = {
  // The title of the Channel Point Reward that will trigger the effect
  rewardTitle: 'Show Image',

  // The URL of the image to show
  imageUrl: 'https://streamer.bot/logo.png',

  // The number of seconds to show the image for
  seconds: 5,

  // The width and height of the image (css)
  width: 'auto',
  height: 'auto',
};

Emote Rain

Generate raining emotes from incoming Twitch chat messages.

Options

const CONFIG = {
  // The maximum number of emotes to display at once
  maxEmotes: 20,

  // The size of the emotes (css)
  emoteSize: '100px',
};

Custom Overlays

Custom overlays are an advanced use case and require JavaScript expertise

To get started, create a new js file inside the Content directory.

The configured Streamer.bot Client instance is available at window.client for interacting with Streamer.bot via WebSocket and subscribing to events

Here we are using the source of the included show-image.js as an example:

Content/my-module.js

const CONFIG = {
  rewardTitle: 'Show Image',
  imageUrl: 'https://streamer.bot/logo.png',
  seconds: 5,
  width: 'auto',
  height: 'auto',
};

// Here we are subscribing to Twitch Channel Point Rewards
// and triggering our overlay when the configured title matches a redemption
window.client.on('Twitch.RewardRedemption', (message) => {
  if ((message.data.reward.title || message.data.title) === config.rewardTitle) {
    showImage();
  }
});

Import your new module at the bottom of Content/index.html, after any existing <script> tags

Content/index.html

<!-- Add this at the end, after any existing <script> tags! -->
<script type="module" src="my-module.js"></script>
Take a look at the existing modules in the Content directory for examples

 

Link: https://docs.streamer.bot/guide/extra-features/html-overlay