Seldszar / fuel

Interactive countdown using Twitch Channel Points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fuel

Interactive countdown using Twitch Channel Points

Setup

  1. Clone the repository or download the latest release archive
  2. Install Node.js dependencies (npm install)

Usage

When running the program (npm start) for the first time, the program will generate a data folder and a options.json file, then follow the instructions displayed in the console.

A file named data/files/time.txt will be also generated displaying the countdown for an integration with your favorite brodcasting software.

Options

Key Type Description
accessToken String The access token
userId String The user ID for listening reward redemptions
maxTime Number The maximum time (in milliseconds)
offsetTime Number The offset time (in milliseconds)
rewards Object the supported rewards
rewards[].title String The rewards title
rewards[].time Number The time to add to the countdown (in milliseconds)

Example:

{
	"accessToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
	"userId": "23345149",
	"rewards": [
		{
			"title": "Une demie-heure d'essence",
			"time": 1800000
		}
	]
}

Author

Alexandre Breteau - @0xSeldszar

License

MIT © Alexandre Breteau

About

Interactive countdown using Twitch Channel Points

License:MIT License


Languages

Language:JavaScript 100.0%