LastFM-RPC is a Discord Rich Presence client that syncs with your Last.fm account. Share what you're listening to with friends — whether you're using Spotify, Apple Music, YouTube Music, or any other scrobbling-compatible player.
- 🎵 Now Playing — Shows current track with remaining time
- 📻 Last Played — Falls back to last scrobbled track when idle
- ⚡ Real-time Updates — Polls every 6 seconds for changes
- 🎨 Clean Display — Artist and track info in Discord presence
| Now Playing | Last Played |
|---|---|
![]() |
![]() |
-
Clone the repository
git clone https://github.com/Chere3/LastFM-RPC.git cd LastFM-RPC -
Install dependencies
yarn install # or: npm install -
Configure environment
cp .env.example .env
Edit
.envwith your credentials:API_KEY=your-lastfm-api-key API_SECRET=your-lastfm-api-secret USER=your-lastfm-username CLIENT_ID=your-discord-application-id
-
Run the application
yarn start # or: npm start
| Variable | Required | Description |
|---|---|---|
API_KEY |
✅ | Your Last.fm API key |
API_SECRET |
✅ | Your Last.fm API secret |
USER |
✅ | Your Last.fm username |
CLIENT_ID |
✅ | Discord application ID |
Discord presence not showing
- Ensure Discord desktop app is running (not web version)
- Check Activity Status is enabled in Discord settings
- Verify
CLIENT_IDmatches your Discord application
"No song found" error
- Verify your Last.fm username is correct
- Ensure you have scrobbled at least one track
- Check your API credentials are valid
Rate limiting issues
The app polls every 6 seconds. If you experience rate limiting, increase the interval in src/rpc/start.ts.
LastFM-RPC es un cliente de Discord Rich Presence que se sincroniza con tu cuenta de Last.fm. Comparte lo que estás escuchando con tus amigos — ya sea que uses Spotify, Apple Music, YouTube Music, o cualquier otro reproductor compatible con scrobbling.
- 🎵 Reproduciendo Ahora — Muestra la canción actual con tiempo restante
- 📻 Última Reproducida — Muestra la última canción cuando no hay música activa
- ⚡ Actualizaciones en Tiempo Real — Consulta cada 6 segundos
- 🎨 Visualización Limpia — Información del artista y canción en Discord
| Reproduciendo Ahora | Última Reproducida |
|---|---|
![]() |
![]() |
-
Clonar el repositorio
git clone https://github.com/Chere3/LastFM-RPC.git cd LastFM-RPC -
Instalar dependencias
yarn install # o: npm install -
Configurar variables de entorno
cp .env.example .env
Edita
.envcon tus credenciales:API_KEY=tu-api-key-de-lastfm API_SECRET=tu-api-secret-de-lastfm USER=tu-usuario-de-lastfm CLIENT_ID=tu-id-de-aplicacion-discord
-
Ejecutar la aplicación
yarn start # o: npm start
La presencia no aparece en Discord
- Asegúrate de usar la app de escritorio de Discord (no la versión web)
- Verifica que el Estado de Actividad esté habilitado en configuración
- Confirma que
CLIENT_IDcoincida con tu aplicación de Discord
Error "No se encontró canción"
- Verifica que tu nombre de usuario de Last.fm sea correcto
- Asegúrate de haber hecho scrobble de al menos una canción
- Revisa que tus credenciales de API sean válidas
See ROADMAP.md for planned features and improvements.
MIT © Chere3


