3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00
This commit is contained in:
reality 2013-10-23 20:25:42 +00:00
parent 7f2d813c8c
commit 9d48917d09

View File

@ -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,