Coder Social home page Coder Social logo

mctc's Introduction

MCTC

MCTC (short for magi's custom twitch chat) is a webpage which shows the last chat message from a twitch chat.

Examples

See some examples below: Example 1 Example 2 Example 3 Example 4

How to use it

Preparation

You will need an APP_ID and APP_SECRET from twitch - You get these if you create/manage an app: https://dev.twitch.tv/console/apps/.

via GitHub pages

If you don't want to do any style changes and always use the most up-to-date version, you can just this link: https://magiausde.github.io/mctc/mctc.html?channel=magiausde&appid=abcde&appsecret=fghijkl

Remember to update channel=..., appid=... and appsecret=....

local/cloned

Clone this repository (or download the zip/tar-file).

You can either

  • set the values directly inside the mctc.js
  • specify them as parameters in the URL, like .../mctc.html?channel=magiausde&appid=abcde&appsecret=fghijkl

Inside the mctc.js-file, you can also set users so ignore (e.g. your bots).

Styling

You can change various style-aspects, just edit the mctc.css-file.

Bug or Feature request?

Just add it as an issue. Please keep in mind that this project is a spare time project.

mctc's People

Contributors

magiausde avatar

Watchers

 avatar

mctc's Issues

Add support for CLEARMSG event

If a message gets deleted, it causes an CLEARMSG event.

This is relevant, if the currently shown message gets deleted. Currently it stays on the page.

Ability to hide old message

Add the ability to optionally hide an old message (e.g. if the last message was received over a minute ago).
Maybe also add the possibility to show some kind of message, like "Hey you! Chat now!"

CSS for mentions

Ability to apply css to a RegEx of mentions, like @magiausde Sure does!

Ability to show Links shortend

Sometimes users post links or links to images in the chat.
Add the ability to just show something like [Link] insted, so it doesn't fill the entire chat bar.

Enforce linebreaks

Very long messages without spaces lead to linebreaks, such as:
image
This shouldn't happen!

Cheermote substring bug

For example if a user uses loadCheer..., mctc reacts to the global twitch Cheer...

DevTools said:

Found Cheer100 in loadCheer100 ....

image

Emojis move chat-row

If the chat message contains emojis, this will result in the chat-row being moved down a little.
image

Make image scaling level configurable

Currently, MCTC loads all images (badges, emotes etc.) with the "2x" scaling (if available).
Users with low bandwidth may want to use low-res images (1x), Users with a large chat may would like to use 4x scaling.
It depends, if it is available, of course.

Optional clock

This isn't really a "core feature" of mctc, but it's a nice idea to have a clock with separate styling available on the left or right side of the chat bar - optional, of course.

Might be useful if a international streamer uses mctc with viewers in different timezones.

It could show the streamers timezone, but maybe also (if wanted) the current time in other timezones (like news channels do it).

[magiausde] Oh wow, look - a new feature! | 11:38 CET

[magiausde] Oh wow, look - a new feature! | 6:38 am ET

[magiausde] Oh wow, look - a new feature! | 11:38 pm NZDT

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.