From 9d48917d09b27639cd2c6e6a2dd0a4457e421216 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 23 Oct 2013 20:25:42 +0000 Subject: [PATCH] tings --- modules/lastfm/lastfm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lastfm/lastfm.js b/modules/lastfm/lastfm.js index c62fbc2..8bd302e 100644 --- a/modules/lastfm/lastfm.js +++ b/modules/lastfm/lastfm.js @@ -12,12 +12,12 @@ var lastfm = function(dbot) { this.commands = { '~listening': function(event) { dbot.api.profile.getProfileByUUID(event.rUser.id, function(profile) { - if(profile && _.has(profile.profile, 'lastfm')) { + if(profile && profile.profile,lastfm != null) { profile = profile.profile; request.get(this.ApiRoot, { 'qs': { 'user': profile.lastfm, - 'limit': 1, + 'limit': 2, 'nowplaying': true, 'method': 'user.getrecenttracks', 'api_key': this.config.api_key,