Using Discord Presence as an API

I recently wanted to embed my Discord rich presence onto my site. A rich presence allows you to show what application you are using, with details. Applications can interface with the Discord client and can pass through info. This is then displayed publically on your Discord profile. I used Express + Discord.JS to make a bot that passes through my current presence to an API: presence.1nf.me. This may not display anything, as I am not always online/using presence. It will also pass through my Spotify data if I am listening as well as using an application.

I open sourced this project and you can find it on GitHub @ evwltrs/presup. This is a very raw and basic implementation so feel free to create issues/PR’s and I will look at them ASAP.