Skip to content

KeithSalhani/LastFM-Discord-RPC

Repository files navigation

LastFM-Discord-RPC

logo
This adds RPC to Discord from LastFM.
It will show:

  • Display currently listening to music from LastFM to Discord
  • Display LastFM profile picture to rich presence (Optional)
  • Display scrobble amount to rich presence (Optional)
  • Display the current songs lyrics in your bio (Optional, Beta) Please read

Lyrics 🎤

To activate lyrics
  • Go to Discord on your browser
  • Press settings in Discord and go to the bio changing section
  • Open inspect element
  • Press the **Network** tab
  • Change your bio to whatever
  • A event called "Profile" should now be in the network section, right click it and copy as cCurl (Bash)
  • Paste it into https://curlconverter.com/python/
  • Open lyricsBoy.py and paste the output of curlconverter into the cookies and headers section

Requirements 🛠️

  1. Create a LastFM API Key
  2. Install the packaged version here
  3. Run lfmRPC.exe
  4. Press settings, input your username and API key
  5. Restart the program

Build 🛠️

I like using electronmon because it hot reloads, feel free to edit manually

  1. npm install
  2. npm install electronmon
  3. npx electronmon .
    

Images 🎵

eg1
eg3

Using profile picture as small image
DiscordCanary_mxJ0OSuhNA

electron_ViDA6PggFb image

💽 Supported Platforms: