Last.FM Command & Auto Announce On Song Change

customscript
dakoda
javascript
phantombot
commands

#1

Command for current song and auto announce on song change for people using Last.FM.

Version:
1.0.2

Setup:
First go to LastFM to create your api account.

Then you will need to run 2 commands to make the settings for this to work.

  1. !lastfm username [LastFM Username]
  2. !lastfm apikey [LastFM API Key]

after this you may check the current command using !lastfm or you can toggle the announcement using !lastfm toggle auto

Files:
lastFMSystem.js (6.1 KB)
system-lastFMSystem.js (806 Bytes)

Sample Below;


#2

using this works perfectly thanks!!


#3

I have installed and set this up, however the !lastfm command does not work.

Is this only enabled when I’m live or should it work even when I’m offline?


Hosting Own Channel
#4

Version:
1.0.1

Fixes:
The first time running it didn’t update until after rebooting the bot [ found by bennnndaniels ]

Files:
lastFMSystem.js (6.3 KB)
system-lastFMSystem.js (671 Bytes)


#5

Version:
1.0.2

Fixes: [Edited by UsernamesSuck]

  • All settings move to one area.
  • Added a toggle for announcing the song.
  • Added a toggle to save current song to file.
  • Added a error message if the settings have not been set.
  • Removed the auto setting in-place of the 2 above.

Files:
lastFMSystem.js (6.1 KB)
system-lastFMSystem.js (806 Bytes)


#6

Well I tried to set it up and I did it like said above and my bot still spams It isn’t set up. Could be there a way to make these settings in the bot login txt file even when I muted my bot it spamed in the console it isn’t set up so I had to remove it.


#7

Even though I would love to add this to the bot, it spams chat like crazy about not being set up. So I guess I’ll wait until that gets fixed before adding it again.


#8

thats wierd that it would do that ill look into it and see if mine does this too now maybe the last fm api was changed