Chess service for Discord guilds.
Matches are played on lichess (account isn't necessary) and can be spectated.
- Custom Global/Guild elo
- Player/guild stats
- Live board preview
creates an open match and returns lichess api response data
{
"user_id" : 1234,
"user_nickname" : "username",
"opponent_id" : 1235,
"opponent_nickname" : "test_user",
"guild_id" : 1337
}
updates player ids of an ongoing match
{
"match_id" : "4fpT7YFN",
"match_result": "unfinished",
"white_id":1234,
"black_id":1235
}
if match has ended, update the match & elos (if player ids are known)
{
"match_id" : "4fpT7YFN"
}
requests match data, renders the board and returns a png object
GET "example.com/dchess/api/get_match_preview/4fpT7YFN/11"
GET "example.com/dchess/api/get_match_preview/4fpT7YFN/last"
returns match data
{
"match_id" : "4fpT7YFN"
}
returns player data
{
"player_id" : 1234
}
returns guild data which consists of guild player ids and elos
{
"guild_id" : "544105274940850178"
}