Giter Site home page Giter Site logo

obs-chat's Introduction

Chat!

A simplistic OBS chat similar to that of Ludwig's and Jschlatt's - with random colors for names included

You can use this code freely. I have been looking around for Ludwig's chat code but I can't seem to find it anywhere, so I made my own interpretation and decided to put it on GitHub so everyone else can use it freely.

Note: you need the exact HTML, CSS and JS from the correspondant files.

Pros

This chat is optimized for YouTube. However, I added the color generation script that Twitch has. It generates colors based on usernames, which means even though it's going to seem random, the colors for specific users will never change.

Because the CSS file is using Streamlabs' variables, you can still change the font size and the text color (of the message, not the person who sent the message) straight from the dashboard.

Every message has an outline and a drop shadow to make the messages easily distinguishable from the background.

Similar to popular streamers' chats, Jschlatt and Ludwig use a similar chat below their face cams.

Cons

It uses an outdated color generation script; it still works, but it's not what Twitch uses currently. (Twitch currently generates a random color from a pre-defined list, adds that color to a database attached to a username, and uses that color; we can't do that because of Streamlabs' limitations.)

No animations: first of all, I'm too lazy to implement them, second of all, Jschlatt and Ludwig don't have animations, and the current code is trying to replicate their chats.

How to implement

Tools you'll need

  • Streamlabs account
  • Depending on what you're using to livestream: Streamlabs OBS or OBS Studio (XSplit is gay)

Step-by-step guide

  1. Go to the Streamlabs OBS website and log in / create an account.
  2. Go to your dashboard.
  3. Scroll to Essentials > All Widgets.
  4. Find Chat Box.
  5. Scroll down until you see a switch labeled "Enable Custom HTML/CSS" - click on Enabled.
  6. In the HTML tab, paste the contents of index.html.
  7. In the CSS tab, paste the contents of style.css.
  8. In the JS tab, paste the contents of scripts.js.
  9. Click on Save Settings.

obs-chat's People

Contributors

pearooxd avatar

Stargazers

Krisz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.