Discord Role Connection Metadata for NationStates

I worked on a personal project a couple months ago to bring NationStates information to Discord via linked roles metadata. It uses NationStates’ verification API to authenticate each user’s nation and then attaches information about that nation to their Discord profile. Discord server administrators can configure certain ‘linked roles’ that users obtain by verifying their nation.

The code is open-source under the AGPL-3.0 license and available on GitHub. Contributions are welcome! It’s a Node.js application that can be built from source to a single ‘standalone’ file (though you need a Node.js runtime) or pulled as a Docker image.

If anyone wants to test things out on a real deployment, I have a test server set up. Please feel free to message me directly for the invite — I don’t know how much volume of use I can support on my current hosting provider’s free plan. I’ve tested things myself and with @ProfessorHenn (who’s previously expressed interest in this feature) but am happy for others who are interested to poke around.

Is this something that the admin team would be interested in hosting and setting up on our Discord server? I’m happy to work on further code changes/improvements. Unfortunately, I can’t commit myself to covering the real-life hosting costs. Roavin mentioned before that the existing server (for hosting the forums, etc.) can accommodate community projects as well. No worries if that’s no longer the case, but I figured it wouldn’t hurt to ask!

Ah, yes! In an ideal world, we’d have NS, Discord, and Discourse all synced up. This seems like a stepping stone in that direction.

I’d love to see the test deployment!

1 Like

Have you tested it locally?

Yep! It works on my machine >_>