Intends to be a global source of PolyTrack player to other account mappings
- Rust 100%
| migrations | added primary owner, added help text to dc bot | |
| src | made clippy happy | |
| .gitignore | initial commit | |
| build.rs | initial commit | |
| Cargo.lock | moved from dotenvy_macro to dotenvy | |
| Cargo.toml | split stuff up into bin and lib | |
| LICENSE | started adding some docs, improved Discord API | |
| README.md | started adding some docs, improved Discord API | |
PolyUsers
A global database of Polytrack account to other services' accounts mappings.
Consists of a central API, implemented as an Axum web server, as well as service-specific submodules, currently just a Discord bot.
API
Main
GET("/"): returns a Json list of Polytrack accounts:id: Stringname: optional Stringpublic: bool
Discord
GET("/discord"): returns a Json list of Discord accountsid: i64 (should technically be u64, might have to be fixed)
GET("/discord/from_player/{player_id}"): returns a Json list of Discord accounts associated with this Polytrack account:verified: boolid: i64 (as above)
GET("/discord/from_discord/{discord_id}"): returns a Json list of Polytrack accounts associated with this Discord account:verified: boolid: Stringname: optional Stringpublic: bool
POST("/discord/register"): registers a new mapping, takes a Json body:discord_id: i64 (as above)user_token: Stringpt_name: optional Stringpublic: optional bool (defaults to false)