Skip to content
TG007 community snippet #92

Spotify Now-Playing code for mIRC

I released a Spotify Now-Playing DLL for mIRC which read the title from Spotify window. To use this simple script you need to download the latest DLL file on github https://github.com/turbosmurfen/spoton/releases, and then follow the s

By turbosmurfen Added Mar 23, 2021 Updated Dec 4, 2021
General IRC All snippets
mIRC script 9 lines
About this snippet

Overview

I released a Spotify Now-Playing DLL for mIRC which read the title from Spotify window. To use this simple script you need to download the latest DLL file on github https://github.com/turbosmurfen/spoton/releases, and then follow the simple information at https://github.com/turbosmurfen/spoton/wiki/Howto. Use /snp to write out the title.

Edit: Updated the Script to use the correct MSL variable. Edit 2: Updated the script to follow the correct way.
Source code

mIRC script

9 lines · 285 characters
alias snp {
  var %status $dll(spoton.dll,status,)
  if (%status == 0) echo -a Spotify is not running.
  else if (%status == 1) echo -a Spotify is paused.
  else if (%status == 2) echo -a Spotify is playing Advertisement.
  else {
    say Spotify » $dll(spoton.dll,song,)
  }
}
Community

Comments

Want to join the discussion? Sign in to TG007.
turbosmurfenThursday, 23 September, 2021
The best way would be a timer coded in MSL. It was so long time ago I coded in MSL. But there should be a way to encode or hash the output, then if it changes then write out the song. MSL should be able to do this.
BelonThursday, 5 August, 2021
how can i make it auto play?? i mean when the spotify play song it will auto announce to the channel?