Free Guide to Adding Streamer.bot Chat to Your Overlay
Understanding What Streamer.bot Does and Where Chat Fits
Streamer.bot is a Windows desktop application that many streamers use to automate parts of their broadcasts. It can respond to events such as chat messages, follows, subscriptions, and raids. When an event happens, Streamer.bot runs an action, which is a set of steps you design. An action might post a chat reply, play a sound, change a scene in OBS, or send data to a web page. This guide is an educational resource that explains how chat can be shown on a stream overlay using these tools.
Get Your Free Guide to Moving Money Into SoFi →
An overlay is the graphic layer that viewers see on top of your gameplay or camera. A chat overlay displays messages from your channel on screen, so viewers can read conversations while they watch. Streamer.bot does not need to draw the overlay itself. Instead, it sends chat information to a web page, and that web page shows the messages in a style you choose. OBS Studio, a free and open-source broadcasting program, loads that web page through a feature called a Browser Source.
Understanding this three-part relationship makes the rest of the process clearer. Streamer.bot receives chat events from platforms such as Twitch, YouTube, or Kick. It then passes the message data to a web page through a local connection. OBS displays that web page as part of your scene. Each part has a specific job, and problems are easier to find when you know which part is responsible for what.
Practical takeaway: Before changing any settings, draw a simple diagram with four boxes labeled Platform Chat, Streamer.bot, Overlay Web Page, and OBS Scene. Draw arrows between them to show the direction of data. This map will guide you through the steps in later sections.
Preparing Streamer.bot and Your Streaming Setup
Before adding chat to an overlay, confirm that your basic streaming setup works. Streamer.bot should be installed on the same Windows computer that runs OBS. You should also be able to log in to your streaming account inside Streamer.bot. Most chat-related features depend on that connection, so verifying it first can prevent confusion later. Official setup instructions for Streamer.bot are published by its developers, and their documentation may change between versions, so check the current version notes when you begin.
Free Guide to Passing Your Written Driver's License Test →
Next, look at the settings for Streamer.bot's built-in servers. Streamer.bot can run a WebSocket server, which allows other programs and web pages on your computer to receive events. In many versions, the WebSocket server uses port 8080 by default, and the HTTP server may use a different port. Port numbers can differ depending on your version and any changes you made, so read the port number shown in your own settings instead of copying a number from an old tutorial. Keep the server bound to your local computer unless you have a specific reason to change it.
It also helps to organize your OBS scenes before you add anything new. Create a test scene with a plain background so you can see your overlay clearly. Many streamers use a canvas size of 1920 by 1080 pixels, which matches a common 16:9 widescreen layout. Writing down your canvas size, your chosen port number, and your platform account name in one place can save time when you troubleshoot.
Practical takeaway: Create a short checklist with three items: Streamer.bot is logged in to your channel, the WebSocket server is turned on with a noted port number, and a separate test scene exists in OBS. Complete each item before moving on to the overlay steps.
Choosing a Method to Show Chat on Your Overlay
There are several ways to display chat on screen, and each one fits a different type of stream. The most common method for custom designs uses a local web page loaded in an OBS Browser Source. This approach allows you to control fonts, colors, animations, and message limits. A second approach uses existing overlay widgets from third-party providers. Those widgets may offer ready-made designs, but they can require separate accounts or subscriptions, so review their terms before choosing one.
Learn How ThankYou Points Work With Checking →
A third approach is to display chat directly through a text source in OBS and update it with Streamer.bot actions. This works for very simple text, but it does not handle long lists of messages well. A web page is usually the better choice when you want messages to fade, stack, or scroll smoothly.
Consider these factors when comparing options:
- Design control: A web page allows the most customization of colors, fonts, and layout.
- Computer load: Each browser source uses some processing power. Many streamers test performance while playing a demanding game.
- Message handling: Decide how many messages should appear at once, such as five or ten, and whether older messages should fade out.
- Moderation: Plan how to hide commands, links, or blocked words so they do not appear on screen.
- Platform support: Confirm that the chat events you need are available for your platform.
Practical takeaway: Write down your top two priorities, such as custom design and a limited message count. Choose the method that matches those priorities, then continue with the steps in the next section.
Building a Basic Chat Overlay Web Page
A basic overlay web page needs three files or sections: HTML for structure, CSS for appearance, and JavaScript for connecting to Streamer.bot and adding messages. You can place all three in one file with a .html extension. Use a plain text editor such as Notepad, or a code editor that you already know how to use. The example below is a starting point that you can adjust to match your channel's style.
Learn About Prevnar 20 Coverage Under Medicare →
The JavaScript part connects to the WebSocket server, subscribes to chat events, and creates a new message element each time a chat message arrives. Event names and data fields can vary between Streamer.bot versions and platforms. For that reason, the example includes a line that logs the raw data, which you can view in your browser's developer console to confirm the correct field names.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> body { background: transparent; margin: 0; font-family: Arial, sans-serif; } #chat { position: absolute; bottom: 20px; left: 20px; width: 400px; } .msg { background: rgba(0,0,0,0.6); color: #fff; padding: 6px 10px; margin-bottom: 4px; border-radius: 6px; font-size: 18px; } .user { font-weight: bold; color: #9fd3ff; } </style> </head> <body> <div id="chat"></div> <script> const chat = document.getElementById("chat"); const socket = new WebSocket("ws://127.0.0.1:8080/"); socket.onopen = () => { socket.send(JSON.stringify({ request: "Subscribe", id: "chat-overlay", events: { Twitch: ["ChatMessage"] } })); }; socket.onmessage = (event) => { const packet = JSON.parse(event.data); if (packet.event && packet.event.type === "ChatMessage") { console.log(packet.data); // confirm field names here const user = packet.data.user.name; const text = packet.data.message.message; const line = document.createElement("div"); line.className = "msg"; line.innerHTML = '<span class="user">' + user + ':</span> ' + text; chat.appendChild(line); while (chat.children.length > 6) chat.removeChild(chat.firstChild); } }; </script> </body> </html>Save the file in a folder you will remember, such as Documents or a dedicated overlays folder. Keep the file name short and avoid spaces. The example limits the display to six messages, which keeps the overlay from growing off screen. Adjust the number, font size, and position to fit your layout.
Practical takeaway: Save the example as a local file, open it in a web browser, and check the developer console. If the console shows chat data when someone posts a message, your field names are correct. If not, update the field names to match what appears in the console.
Connecting Chat Events and Protecting Your Stream
Once the web page works in a browser, the next step is to add it to OBS and confirm that it receives live chat. In OBS, add a new Browser Source to your test scene, then choose the option to use a local file. Select your saved HTML file. Set the width and height to match your canvas, such as 1920 by 1080. Many streamers also check the option to shut down the source when it is not visible, which can reduce unnecessary processing. After adding the source, send a test message in your channel and confirm that it appears on screen.
Learn About Scheduling Your Mississippi DMV Appointment →
Chat overlays need protection from unwanted content. Consider these common concerns:
- Bot commands such as !commands or !song can clutter the display. Filter messages that start with an exclamation mark.
- Links can be unsafe or distracting. Hide messages that contain web addresses.
- Platforms enforce rate limits. For example, Twitch limits regular accounts to 20 chat messages per 30 seconds in most channels, so your overlay should not depend on sending many messages quickly.
- Blocked or banned users should not appear. Streamer.bot can work alongside your platform's moderation tools, but you should test this before going live.
To filter commands, add a check in the JavaScript before creating the message element, such as checking whether the text starts with an exclamation mark and skipping it if it does. Test each filter with sample messages. Keep a record of what you changed so you can undo a change that causes problems.
Practical takeaway: Create a test list of five sample messages, including one command, one link, and one normal message. Post them in a private or test channel and confirm that only the normal message appears in the overlay.
Testing, Styling, and Troubleshooting Your Overlay
Testing is the stage where most problems are found. Run your overlay with your normal game or camera feed, not just an empty scene. Chat may look different over bright or busy backgrounds. Check text contrast by viewing the overlay on a range of backgrounds. A semi-transparent dark background, like the one in the example, often improves readability. Font sizes that look correct on a large monitor may be too small on a phone, so consider how viewers on different devices will see the stream.
Get Your Free Guide to Moving Money Into SoFi →
When the overlay does not work, check these common causes in order. First, confirm that Streamer.bot is running and that the WebSocket server is turned on. Second, verify that the port number in your HTML file matches the port in Streamer.bot. Third, open the developer console in your browser and look for connection errors or unexpected data. Fourth, confirm that your platform account is connected in Streamer.bot. Fifth, check whether a firewall or security program is blocking local connections.
Some streamers also keep a changelog. Write the date, the change you made, and the result. This habit makes it easier to return to a working version if a later update breaks something. Streamer.bot updates may change event names or data structures, so review your overlay after each major update.
Practical takeaway: Create a short troubleshooting table with three columns: symptom, possible cause, and what you checked. Fill it in during testing. Keeping this record can make future problems easier to solve and can help you explore options when you want to expand your overlay later.
This guide is general information, not professional advice. Offices and providers set their own rules, so check the details with the one you’re seeing. See our Editorial Policy.