Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate donor "hall of fame" generation/updating #37

Closed
lucko opened this issue Oct 28, 2020 · 1 comment
Closed

Automate donor "hall of fame" generation/updating #37

lucko opened this issue Oct 28, 2020 · 1 comment

Comments

@lucko
Copy link
Member

lucko commented Oct 28, 2020

There is a new metadata endpoint at: https://metadata.luckperms.net/data/donors

It exports an up-to-date list of donors from the Patreon API, and combines this with a manual list of donations (from GitHub Sponsors or elsewhere) - and makes it available as a metadata endpoint that other services can consume.

The system respects the users privacy settings in Patreon, and only displays public pledges.

The idea is, we can use this endpoint to automatically update the Hall of Fame message in Discord.

My existing message will need to be deleted (clippy can't edit it), but after that, it should be possible to update it!

The metadata endpoint returns the following per user:

{"name":"Luck", "discord":"615647165548724372", "tiers":["Donor"]}

If the user is online/connected to Discord, we can use the Discord API to resolve their user id to their Discord username, and use that in the list.

If not, we can use their full name as given by Patreon.

@lucko
Copy link
Member Author

lucko commented Nov 2, 2020

9fd915b

@lucko lucko closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant