This script will update your Discord "Listening to" status with whatever you are listening to according to Last.FM
Setup is fairly straightforward and only takes a few minutes. You'll need two things:
Head over to the Last.FM API Page and sign in with your existing Last.FM username and password. It should bring you to the Create API account page and ask you for a few things.
It doesn't really matter what you put in most of the fields, but it should probably look something like this:
After clicking Submit you should get a confirmation page with two items: API Key and Shared Secret. The API Key is the only one you need for this, but I recommend you save both for future use just in case, as they don't actually provide a way to retrieve these later.
Copy and paste the API Key value into the config file in the api_key = xxx
line
For this one you'll need to use the Desktop or Web app - it will not work on mobile.
If you are using the desktop app:
- Press Ctrl+Shift+I
- Click the "Application" tab
- Click and expand the "Local Storage" section
- Click on the only entry in this section, "https://discordapp.com"
- Right click -> Edit Value in the field to the right of "token"
- Copy and paste the token value into the config file on the
token = xxx
line and remove the quotation marks from it.
If you are using Discord in a browser:
- Press F12
- Click the "Storage" tab
- Click and expand the "Local Storage" section
- Click on the only entry, "https://discordapp.com"
- Copy the value beside the "token" entry and paste it into your config file without the quotation marks.
Save your config file as "config.ini" and it should look something like this:
Now just run the executable. It should connect to Discord and immediately start setting your "Playing" status to whatever you're listening to on Last.FM
If it's working, it will look like this:
Inspired by: https://github.com/vsTerminus/Discord-NP