A program that periodically saves TETR.IO stats
- Download and install Node.JS
- Clone or download this repository
- Open a terminal or cmd in the source directory and type
npm start
so that the program starts working
- Open the
config.json
file from the program's root directory. - Change the options, following the guide below
- Enjoy ;)
WARNING: DO NOT REMOVE ANY PROPERTY AS IT WILL CRASH THE PROGRAM
Property | Meaning |
---|---|
outputDir | The path to the directory your data will go in |
data.leaderboards | The request list the program will make (check section below) |
data.savedStats | The stats the program will save (check Tetra channel API docs) |
data.interval | The interval, in seconds, at which the program will make its request (one request per second max) |
data.removeLocalDuplicates | Will remove duplicates in a same time period |
data.removeGlobalDuplicates | Will not add the time period if it is exactly the same as the last one |
Each element from the request list will be formatted as follow:
leaderboard#country&option1&option2
ex. tl#fr&l50
means tetra league leaderboard for france with a limit of 50
- leaderboards can be "tl" (tetra league), "tlf" (tetra league full export) or "xp" (xp)
- options can be (except for "tlf"): "&l" (limit), "&a" (after) and "&b" (before). Check Tetra channel API docs for more infos