1
0
Fork
You've already forked polyusers
0
Intends to be a global source of PolyTrack player to other account mappings
  • Rust 100%
2025年10月18日 12:05:57 +02:00
migrations added primary owner, added help text to dc bot 2025年10月17日 20:30:48 +02:00
src made clippy happy 2025年10月18日 12:05:57 +02:00
.gitignore initial commit 2025年10月16日 10:07:12 +02:00
build.rs initial commit 2025年10月16日 10:07:12 +02:00
Cargo.lock moved from dotenvy_macro to dotenvy 2025年10月17日 15:52:12 +02:00
Cargo.toml split stuff up into bin and lib 2025年10月18日 11:46:43 +02:00
LICENSE started adding some docs, improved Discord API 2025年10月16日 21:20:52 +02:00
README.md started adding some docs, improved Discord API 2025年10月16日 21:20:52 +02:00

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: String
    • name: optional String
    • public: bool

Discord

  • GET("/discord"): returns a Json list of Discord accounts
    • id: 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: bool
    • id: i64 (as above)
  • GET("/discord/from_discord/{discord_id}"): returns a Json list of Polytrack accounts associated with this Discord account:
    • verified: bool
    • id: String
    • name: optional String
    • public: bool
  • POST("/discord/register"): registers a new mapping, takes a Json body:
    • discord_id: i64 (as above)
    • user_token: String
    • pt_name: optional String
    • public: optional bool (defaults to false)