🎶 Update your Slack status with your currently playing Last.fm track
I liked a version of this that used Spotify but wanted a version that uses Last.fm.
Last.fm in theory works with any music source not just Spotify but still has good integrations with Spotify.
The Last.fm API is a lot easier to use than Spotify too as you just need a API key and don't need to worry about OAuth.
- Remix this app 🎤
- Add Slack emojis from assets
In the assets section there are Last.fm and Scrobble icons. Add the to Slack with the names
lastfm
andlastfm-scrobbling
.
Add API key and secret environment variables to
.env
- Create a Slack app with
user.profile:write
scope permissions.
Add the app to your workspace and copy the full
xoxp-xxx-xxx
token to.env
- We'll use Uptime Robot to poll the Glitch app every minute to update the status.
Create an account on Uptime Robot Set the
BOT_ENDPOINT
variable to something secret For example if BOT_ENDPOINT is 'runescape' your URL could behttps://lastfm-slack-status-sync.glitch.me/sync-runescape
Update Uptime Robot accordingly
- Set a
THEME
variable to 'lastfm' for Last.fm theme or 'none' for emojis (See screenshots)