CLI tool to create Lichess chess tournaments, built using NodeJS.
Using npm:
$ npm i -g lichess-tournament-creator
$ lichess-tournament-creator <type> [...params]
type
:
arena
: create Arena format tournament
name
: tournament namedate
: tournament date, in 'YYYY-MM-DD hh:mm:ss' formattournament_duration
: tournament duration, in minutesmatch_duration
: match duration, in minutesmatch_increment
: match increment per move, in secondsauth_token
: lichess API authorization tokenarena
: create Swiss format tournament
name
: tournament nameteam_id
: team identification stringdate
: tournament date, in 'YYYY-MM-DD hh:mm:ss' formatnum_rounds
: tournament number of roundsmatch_duration
: match duration, in minutesmatch_increment
: match increment per move, in secondsauth_token
: lichess API authorization tokenfile
: create a set of tournaments via configuration file
file_name
: JSON file name (format explained below)$ lichess-tournament-creator arena "First anual chess meetup" "2021-01-01 16:30:00" 80 3 2 authtokenxpto123
$ lichess-tournament-creator swiss "Swiss-cheese open" switzerland-chess-club "2021-05-20 15:10:00" 7 5 3 authtokenxpto123
$ lichess-tournament-creator file my_tournaments.json
The JSON tournaments input file should follow the following format:
{
"auth_token": "authtokenxpto123", // lichess API authorization token, used in all requests
"tournaments": [
{
"name": "First anual chess meetup",
"type": "arena",
"date": "2021-01-01 16:30:00",
"tournament_duration": 80,
"match": {
"duration": 3,
"increment": 2
}
},
{
"name": "Swiss-cheese open",
"type": "swiss",
"team_id": "switzerland-chess-club",
"date": "2021-05-20 15:10:00",
"num_rounds": 7,
"match": {
"duration": 5,
"increment": 3
}
}
]
}
To run the test suite, install the project's dependencies and run npm test
:
$ npm install
$ npm test