This repository contains a Windows tray app that sets up and keeps updated a Last.FM widget on your Discord profile, showing your scrobbles, artists, tracks, albums, top track and top album.
You have three options:
- Run it from source — just run
discord_lastfm_tray.pywith Python (requires Python + the dependencies inrequirements.txt) - Build it yourself — package it into a standalone
.exe(seeBUILD_EXE_INSTRUCTIONS.md) - Download a prebuilt
.exefrom the Releases page — no Python or dependencies required, just run it
Instructions are available in two languages:
Big thanks to TroubleChute for making a post about this and for making a video tutorial as well. And credits to author of icons i used in this widget.
Python 3.10+
requests, Pillow, pystray (see requirements.txt — pip install -r requirements.txt)
A Discord developer application
and Last.fm API account
| File | Purpose |
|---|---|
discord_lastfm_tray.py |
Main app — tray icon + background auto-updater |
requirements.txt |
Python dependencies |
BUILD_EXE_INSTRUCTIONS.md |
How to package the tray app into a single .exe |
InfoEN.md |
Full setup instructions (English) |
InfoRU.md |
Полная инструкция по установке (Русский) |
- TroubleChute's Blog Post
- TroubleChute's YouTube video on Widgets
- Chloe Cinders' Blog Post
- No Text To Speech's YouTube video on Widgets
- Discord Developer Portal
- Last.FM API Account Creation
Unlike a plain scheduled script, this project ships with its own tray app (discord_lastfm_tray.py) — it runs continuously in the background and updates the widget on a timer you control (1/5/15/30/60 min) right from the tray menu, no Task Scheduler needed.
