dbot/modules/spotify
Scritches 19cc4c474d New minify module
Added a module that provides URL minifier support for dbot.

Updated spotify and lastfm modules with support for url minimization via the include 'bitly' minimizer (which minimizes spotify.com links to spoti.fi - very nice)
2018-03-26 13:52:06 -04:00
..
config.json Move spotify api key into config; Restore spotify functionality to lastfm module ~listening command 2018-03-24 16:20:33 -04:00
README.md Move spotify api key into config; Restore spotify functionality to lastfm module ~listening command 2018-03-24 16:20:33 -04:00
spotify.js New minify module 2018-03-26 13:52:06 -04:00
strings.json Added padding around the urls in the output 2018-03-23 21:37:43 -04:00

spotify

Various Spotify functionality.

Description

This module posts information on Spotify links, as well as providing Spotify search functionality.

config.json

Edit the “api_key_clientid” setting with your Spotify API client ID. Edit the “api_key_clientsecret” setting with your Spotify API client secret.

Commands

~spotify [query]

Search spotify for a song.

Attempt to get a Spotify link from a YouTube link. If no link is provided with the commands, it will attempt to use the last link posted in the channel.

API

spotifySearch(query, callback)

Run a search query on Spotify. If no results are found, the callback will pass false. If a result is found, the callback takes two arguments: data about the found track, and a link to the track.

Hooks

Posts information about a Spotify link when one is posted in a channel.