Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubot-lastfm-notifier

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-lastfm-notifier

A hubot script to post scrobbles of followed users within a chat application.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Track users and share what's currently being played within your chat!

NPM

This integration was built using the free API key from Last.fm. It uses Node Cron to check followed users recent tracks in regular intervals and post back what people are listening to in your chat. Shout out to Last.fm for supporting a free tier API capable of allowing us to do this.

Some things to note, in recent years, more and more companies are closing up their open integrations and trying to keep users in a walled garden. To see how to scrobble from your favorite media sources, look here Track My Music | Last.fm.

Have question, comment, or feature request? Reach out to me on Twitter @kwandrews7 or open up an issue here in the GitHub repo.

Example Interaction:

Hubot >> 🎧 IsolatedSnail: Rehab - Bottles & Cans Hubot >> 🎧 IsolatedSnail: Usher - Burn

API

Managing Followed Last.fm Users

Commands are case insensitive. Any changes to the list of followed users from a channel that is not the notification channel will be announced in the notification channel so all users are kept up to date of changes.

  • hubot show lastfm users - List all users hubot is currently tracking on Last.fm.
  • hubot follow lastfm (username) - Add new user to the list of currently tracked Last.fm profiles.
  • hubot forget lastfm (username) - Remove a user from the list of currently tracked Last.fm profiles.

Installation

Run the following command

$ npm install hubot-lastfm-notifier --save

To enable the script, add a hubot-lastfm-notifier entry to the external-scripts.json file (you may need to create this file).

["hubot-lastfm-notifier"]

Release Notes

1.0.2

  • 1.0.1 tried to rework the scans to only pick up songs that were being actively listened to (i.e: Now Playing). This resulted in several clients no longer reporting listens as several clients wait until a song is mostly played and then just report the played song.
  • 1.0.2 will filter out the "now playing" track and interact only with completed listens. This should prevent the previous 1.0.0 bug where songs would flip around as the song changed. And it should also allow for clients that only report listens.

1.0.1

  • Only notifies on "now playing" to prevent bot from resending previous scrobbles when Last.fm's API is running behind and songs don't immediately show up in history after played.

1.0.0

  • Initial release.
  • Includes adding, removing, and listing followed Last.fm users.
  • Notification channel and alerting channels can be configured separately.
  • Supports custom cron schedule, defaults to once/minute.

Keywords

FAQs

Package last updated on 20 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc