Please or Register to create posts and topics.

Streamer.bot Bits Cheers Rain Overlay

๐Ÿ’Ž Streamerbot Bits Cheers Rain Overlay

A dynamic Twitch Bits (Cheers) rain overlay for Streamer.bot that visually celebrates cheers with animated falling and side-shooting bit icons.

This overlay creates an immersive effect where Twitch Bits:

  • ๐ŸŒง๏ธ Fall from the top of the screen
  • ๐Ÿ’ฅ Shoot in from the sides
  • ๐Ÿงฑ Land and stack at the bottom like a floor
  • โฑ๏ธ Persist for the full animation duration

 


โœจ Features

  • ๐Ÿ’Ž Supports all Twitch Bits tiers:
    • 1
    • 100
    • 1000
    • 5000
    • 10000
  • ๐Ÿ“ˆ Scales visuals based on bits amount (1 โ†’ 1000+)
  • ๐ŸŽฏ Automatically includes all lower tier bit icons
  • ๐ŸŒง๏ธ Continuous falling animation for full duration (7000ms)
  • ๐Ÿงฑ Floor stacking effect at bottom of screen
  • โšก Real-time trigger via Streamer.bot WebSocket
  • ๐ŸŽฌ Smooth, high-performance animation

๐Ÿ“ Files

overlay/
โ”‚
โ”œโ”€โ”€ bits_rain_overlay.html
โ”œโ”€โ”€ 1.gif
โ”œโ”€โ”€ 100.gif
โ”œโ”€โ”€ 1000.gif
โ”œโ”€โ”€ 5000.gif
โ”œโ”€โ”€ 10000.gif

โš™๏ธ Requirements

  • Streamer.bot (v1.0.4+)
  • OBS Studio (or Streamer.bot overlay app)
  • WebSocket enabled in Streamer.bot

๐Ÿ”ง Setup

1. Enable WebSocket in Streamer.bot

  • Go to:
    Servers / Clients โ†’ WebSocket Server
    
  • Enable it

Default:

ws://127.0.0.1:8080

2. Add Overlay to OBS

Add a Browser Source:

file:///C:/path/to/bits_rain_overlay.html

Recommended settings:

  • โœ” Shutdown source when not visible โ†’ OFF
  • โœ” Refresh browser when scene becomes active โ†’ OFF

3. Add Bit Icons

Place all .gif files in the same folder as the HTML:

1.gif
100.gif
1000.gif
5000.gif
10000.gif

๐Ÿ“ก Streamer.bot C# Integration

Required Argument

Argument Description
bits Number of bits cheered

Example C# Broadcast

using System;

public class CPHInline
{
    public bool Execute()
    {
        try
        {
            int bits = 0;
            CPH.TryGetArg(โ€œbitsโ€, out bits);

            if (bits <= 0)
                bits = 1;

            string json =
                โ€œ{โ€
                + โ€œ\โ€type\โ€:\โ€custom.bits.rain\โ€,โ€
                + โ€œ\โ€payload\โ€:{โ€
                + โ€œ\โ€bits\โ€:โ€ + bits
                + โ€œ}โ€
                + โ€œ}โ€;

            CPH.WebsocketBroadcastJson(json);

            CPH.LogInfo(โ€œ[Bits Rain] Triggered with โ€ + bits + โ€ bitsโ€);

            return true;
        }
        catch (Exception ex)
        {
            CPH.LogError(โ€œ[Bits Rain ERROR] โ€ + ex.ToString());
            return false;
        }
    }
}

๐ŸŽฎ Behavior

When triggered:

  1. Streamer.bot sends the bits value
  2. Overlay determines which bit tiers to display:
    • 1000 โ†’ shows 1, 100, 1000
    • 5000 โ†’ shows 1, 100, 1000, 5000
    • 10000 โ†’ shows all tiers
  3. Bits begin:
    • Falling from top
    • Shooting from left/right
  4. Bits land and stay at bottom (floor effect)
  5. Animation continues for full 7000ms
  6. Overlay clears and waits for next trigger

๐ŸŽฌ Animation System

  • Top Rain
    • Randomized spawn positions
    • Gravity-style fall animation
  • Side Burst
    • Left/right velocity launch
    • Eases into resting position
  • Floor System
    • Prevents overflow
    • Creates stacking illusion

๐Ÿงช Testing

In browser console:

testBitsRain(1000);

โš ๏ธ Notes

  • Overlay runs for fixed 7000ms
  • Higher bits = more particles
  • Avoid extremely high spam triggers (performance)
  • Make sure WebSocket is connected

๐Ÿš€ Optional Upgrades

  • Screen shake for big bits (1000+)
  • Sound effects per tier
  • Glow/explosion on impact
  • Particle trails
  • Bit combo counter
  • Queue system for multiple cheers

โค๏ธ Credits

  • Streamer.bot
  • OBS Studio
  • Twitch Bits assets

๐Ÿ“œ License

Free to use, modify, and share.

Uploaded files: