3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 12:42:51 +01:00
dbot/modules/spotify
2013-07-28 12:23:06 +00:00
..
config.json fix merge 2013-05-21 17:31:01 +00:00
README.md Touch spotify README 2013-05-29 13:40:01 +02:00
spotify.js link handlers callback result instead of event.reply it[Close #536] 2013-07-25 21:56:44 +00:00
strings.json Full set of Italian translations from gian-maria.daffre@giammi.com 2013-07-28 12:23:06 +00:00

spotify

Various Spotify functionality.

Description

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

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.