How to Nowplaying on Discord

You need

Look at the following table of Scrobblable Music Player and way. If you want to use other player, see More ways to Scrobble or google it.

Music Playerway
iTunesLast.fm Desktop App
Windows Media Player
WinAMP
Foobar2000
VLCsettings
MusicBee
YouTubeYouTube Scrobbling
Google PlayGoogle Play Music Scrobbling
SpotifySpotify and Last.fm
SoundCloudSoundCloud Scrobbling
Scrobblable Music Player and way

How to Edit Settings UserScript

Download
Download UserScript from Last.fm nowplaying on Discord
Open UserScript by editor and input author.
You agree to MIT License and you are editor. So, you are author.
Input Last.fm ID and Last.fm API Key.
Attention to apostrophe.
Input format.
Replace artist, title, album.
e.g. 🎧title/artist > 🎧Imagine/John Lennon
Input DURATION_TIME and CHECK_INTERVAL.
DURATION_TIME is the amount of time AFTER a song has been changed until the script checks again.After DURATION_TIME has passed, the script checks every CHECK_INTERVAL seconds until a new track has been scrobbled on last.fm.
For example: Let's say your DURATION_TIME is set to: 3 minutes, 30 seconds and your CHECK_INTERVAL is set to 15 seconds. The script will NOT check for a new song for 3 minutes, 30 seconds. After 3 minutes, 30 seconds, the script will check every 15 seconds until a new song has come on. For example: 3 minutes, 45 seconds; 4 minutes, 0 seconds; 4 minutes, 15 seconds.... and so on.
Save.
When the userscript can get duration of song from last.fm, update DURATION_TIME.
If you want to enforce DURATION_TIME, set 1 to ENFORCE_DURATION_TIME.
When you do not play music for 10mins, the userscript stop polling.
If you want to change polling timeout, set value to POLLING TIMEOUT.
Save.
If Windows Notepad, press Ctrl + S.

Install edited UserScript

If you use Firefox, install Greasemonkey. And, D&D edited UserScript.

If you use Chrome, install Tampermonkey. And, Add a new script > Clear textarea > D&D edited UserScript to textarea > save.

How to use