Hermes integration to display the latest song played on Rdio account.
npm install --save hermes-rdio
Using the JavaScript API:
var rdio = require('hermes-rdio');
robot.use(rdio({
key: "RDIO_KEY",
secret: "RDIO_SECRET",
defaultUser: 'joeSchmoe',
defaultMessagePrefix: 'We are jamming to'
}));
rdio-hermes
will respond to @yourbotname rdio {username}
with the song that username
last listened to, or with the song that defaultUser
last listened to if no username is provided.
Rdio API key. If you don't have this, you need to register a new app with Rdio to get an API key and secret.
Rdio API secret.
User to use if no user is specified in message text.
Different message that can be used for the default user.