Lucas Arroyo Blanco
PatoOsoPatoso
1 ) Description
2 ) Requeriments
This node project generates a simple transparent interface to the right side of the primary display which contains the Twitch chat of the channel username stored inside index.js
The interface contains 2 primary views:
-
The first one displays all the messages that arrive.
This view has 2 buttons per message:- A button to mark the message as seen and delete it.
- An other button to mark the message as important and send it to the importants view.
-
This second view contains the important messages.
This view only has 1 button per message:- A button to mark the message as seen and delete it.
- A button to mark the message as seen and delete it.
After finished the installation of the previous components run the following command in a terminal opened on the project folder.
npm install
This will install the necessary packages to use the project.
First of all you need to create a .env file in the root folder of the project
Follow this guide to get the credentials https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#client-credentials-grant-flow
CLIENT_ID=1hl5k66dp7eve3iqf6y38krs3ef4a7
CLIENT_SECRET=oeosv3q9obh2vlw9v9yi1gvw65fon1In order to choose which channel are you gonna select you must modify the next part of index.js.
const client = new tmi.Client({
connection: { reconnect: true },
channels: ['patoosopatoso'] // Change this username
});
