ZeroK-RTS / Zero-K-Infrastructure

Website, lobby launcher and server, steam deployment, .NET based tools and other vital parts of Zero-K infrastructure
GNU General Public License v3.0
53 stars 52 forks source link

Send discord ID from wrapper to zkls #2427

Open DeinFreund opened 6 years ago

DeinFreund commented 6 years ago

If it's possible to detect the logged in discord account, this could be sent to zkls. Then it can store it in db and use it to translate discord <-> in-game nicks reliably. Additionally we could automatically link some information to discord accounts, such as in-game level, rank and profile.

DeinFreund commented 6 years ago

Seems this isn't possible as the Rich Presence only allows sending information to discord, except for special Join/Spectate commands.

DeinFreund commented 6 years ago

So what I'd do now is to add a secret to everyone's Zero-K user homepage that can be entered on the Discord in order to link your account to the Discord account. Then the Discord account would get a "Zero-K player" role and maybe a color depending on rank/level.

The reason for me to suggest this is because the Discord server already has far over a thousand members, yet I'm unsure how many of them actually play the game. This should hopefully encourage some members of the Discord to check out the zk website and play the game.

sprunk commented 6 years ago

related #2417