17 lines
461 B

Proxy for discord avatars.
This program allows you to proxy discord avatars so that they are always up to date.
TOKEN=<discordtoken> PORT=3000 cargo run
Listens to localhost:<port>
Requests to localhost:<port>/avatar/<userid>.png reply with a png of the users avatar.
Requests to localhost:<port>/avatar/<userid>.json reply with a json of the users data.
A publicly hosted version is available at https://dp.nea.moe/avatar/310702108997320705