1.0.3 • Published 8 years ago
scrobble-to-slack v1.0.3
scrobble-to-slack
Updates your status on Slack to the music you are playing
Requirements
- MacOS
- Spotify
Install
$ npm install --save scrobble-to-slack
Usage
const scrobbleToSlack = require('scrobble-to-slack');
scrobbleToSlack({ ['xxxx-xxxxxxxxx-xxxx'], 5 });
API
scrobbleToSlack(config)
config: (Object)
tokens
(Array) - Your API token(s) for Slack, as explained on their tokens pagespeed
(Number) - The speed at which it will poll for the song you are listening to
CLI
$ npm install --global scrobble-to-slack
$ scrobble-to-slack --help
Usage
$ scrobble-to-slack --token "xxxx-xxxxxxxxx-xxxx"
Options
--token Your Slack API token(s) [Required]
--speed Interval speed (seconds) [Default: 10s]
Examples
$ scrobble-to-slack --token "xxxx-xxxxxxxxx-xxxx"
$ scrobble-to-slack --token "xxxx-xxxxxxxxx-xxxx, xxxx-xxxxxxxxx-xxxx"
$ scrobble-to-slack --token "xxxx-xxxxxxxxx-xxxx" --speed 5
License
MIT © Mich Van Mooter