to Mastodon Profile to Mastodon Profile

At this point I’m just coming up with reasons to play with the Mastodon API. I don’t know. I haven’t used in years but I started again recently just because I love logging things. I was also thinking what if I could automatically update my Mastodon profile with dynamic content. Mastodon profiles, by default, have up to four fields you can customize the label and content of. A common use for one of the fields to list their pronouns, link to their website, or share their location, so why not your last played track from My script works can work in two ways: it will look for a field titled and set the value to the last played track, or it will look for a field value of a url and set the field title to the last played track.

This script requires but it can easily be converted to just run with Node. You will need to setup the config portion of the script with your username, API key, Mastodon instance, and Mastodon token. I hope that doesn’t sound like a lot. I’ve documented the code a bit to help you through all of this.

As always, if you have an questions or need help reach out to me on Mastodon.