webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
343 stars 207 forks source link

FE: Allow for showing Discord name on profile #461

Closed chrislatorres closed 3 years ago

chrislatorres commented 3 years ago

we have .discordtoken in the db for the ids, and then lookup the id with the Discord client like: Client.fetchUser("123456789012345678");

I don't know if it completely makes sense to do, it would require a way to keep those names refreshed

avaer commented 3 years ago

The bot could fetch those names.

What make most sense to me is... if someone does .play or .key, we check if they have a name on that account and if not, we set it to the discord name. If there was already a name, do nothing.