Giter Site home page Giter Site logo

disstreamchat / backend Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 78.08 MB

Code for the DisStreamChat backend, including the discord bot and twitch bot.

License: MIT License

JavaScript 1.39% HTML 2.11% CSS 0.98% Dockerfile 0.08% TypeScript 95.44%
chatbot twitch tmi tmijs discord websocket javascript websockets hacktoberfest

backend's Introduction

DisStreamChat Backend

license chat on Discord
This is the backend for the DisStreamChat application, it contains the discord and twitch bots that allow integration between a discord live chat channel and twitch chat, this allow users without twitch accounts or who prefer discord to chat with the streamer without making the streamer look at two chats. This codebase also stores the code for all the other features of the discord and twitch bots.

DisStreamChat is currently in early alpha, but you can add it at disstreamchat.com


Support

This project is a part of DisStreamChat. Whether you use this project, another DisStreamChat project, have learned something from it, or just like it, please consider supporting it by becoming a patreon, so we can dedicate more time on more projects like this ๐Ÿ˜€.

Patreon

Contributions

Contributions and suggestions are welcome, if you have any suggestion go ahead and make an issue and if we like your suggestion we will add it to the todo list. You can also join the discord to give suggestion and get help, either with using it or contributing. If you want to contribute feel free to make a PR we will take a look at it as soon as we get a chance and we'll see if we can merge it.

Installation

The DisStreamChat backend is built with babel so these steps will involve transpiling the code and running it to Install a development version follow these steps

  1. clone the repo with git clone
  2. cd into the repo with cd Backend
  3. run npm i to install dependencies
  4. add a .env and add in the environment variables from .env.sample
  5. run it with npm run dev or npm start

backend's People

Contributors

brazenbillygoat avatar david-snyder-induro avatar dependabot[bot] avatar gypsydangerous avatar itsmrcube avatar mbeuil avatar murdocturner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

brazenbillygoat

backend's Issues

Add more fonts

We would like to have as many font options as possible in the app. But we don't have the time to keep adding fonts to the css file that contains them all. We welcome any contributions of font imports from any font provider like google fonts.

if you would like to add a font to the css file just add it to this file and make a pull request. In your pull request make sure to specify the name of the font you are adding so we can add to the database as an option.

TODO: fix the way BTTV and FFZ emotes are used

currently the backend gets global BTTV and FFZ emotes and aswell as the emotes on the codinggarden channel. I want to improve it so that it gets the global emotes and the emotes for the channel the message was sent in

add discord and twitch events

We want to add logging handlers for discord and twitch. Discord events are further on than twitch but we want to get both done. Discord events have a bunch of files added but the functions currently do nothing. For each discord event, we want to log it with a discord embed. Some events are more difficult than others so you can probably find on that is suited for your skillset.

improve twitch emote parsing

the current twitch emotes parsing relies on the length of the message staying the same, but the HTML cleaning changes the length of the message, the current solution involves getting the difference in length between the original message and the HTML cleaned message and using that to offset the emotes. This solution doesn't always work because the emotes don't always need to be shifted by the full difference in length but only the difference in length of the substring that came before it. I don't know a good way to implement that.

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.