forked from GitHub/dbot
Merge pull request #680 from Scritches/master
Improved error messages for LastFM module.
This commit is contained in:
commit
dfdb31b31d
@ -160,7 +160,7 @@ var lastfm = function(dbot) {
|
|||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
if(err == 'no_user') {
|
if(err == 'no_user') {
|
||||||
event.reply('Unknown Last.FM user.');
|
event.reply(dbot.t('lfm_unknown'));
|
||||||
} else if(err == 'no_listen') {
|
} else if(err == 'no_listen') {
|
||||||
event.reply(dbot.t('no_listen', { 'user': event.user }));
|
event.reply(dbot.t('no_listen', { 'user': event.user }));
|
||||||
}
|
}
|
||||||
@ -275,7 +275,7 @@ var lastfm = function(dbot) {
|
|||||||
}.bind(this));
|
}.bind(this));
|
||||||
} else {
|
} else {
|
||||||
if(err == 'no_user') {
|
if(err == 'no_user') {
|
||||||
event.reply('Unknown Last.FM user.');
|
event.reply(dbot.t('lfm_unknown'));
|
||||||
} else if(err == 'no_listen') {
|
} else if(err == 'no_listen') {
|
||||||
event.reply(dbot.t('no_listen', { 'user': event.user }));
|
event.reply(dbot.t('no_listen', { 'user': event.user }));
|
||||||
}
|
}
|
||||||
@ -351,7 +351,7 @@ var lastfm = function(dbot) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if(err == 'no_user') {
|
if(err == 'no_user') {
|
||||||
event.reply('Unknown LastFM user.');
|
event.reply(dbot.t('lfm_unknown'));
|
||||||
} else if(err == 'no_listen') {
|
} else if(err == 'no_listen') {
|
||||||
event.reply(dbot.t('no_listen', { 'user': user.currentNick }));
|
event.reply(dbot.t('no_listen', { 'user': user.currentNick }));
|
||||||
}
|
}
|
||||||
@ -479,7 +479,7 @@ var lastfm = function(dbot) {
|
|||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
if(err == 'no_user') {
|
if(err == 'no_user') {
|
||||||
event.reply('Unknown Last.FM user.');
|
event.reply(dbot.t('lfm_unknown'));
|
||||||
} else {
|
} else {
|
||||||
event.reply('Well something went wrong and I don\'t know what it means');
|
event.reply('Well something went wrong and I don\'t know what it means');
|
||||||
}
|
}
|
||||||
|
@ -28,5 +28,8 @@
|
|||||||
},
|
},
|
||||||
"lfm_scrobbliest": {
|
"lfm_scrobbliest": {
|
||||||
"en": "Users with the most played tracks: "
|
"en": "Users with the most played tracks: "
|
||||||
|
},
|
||||||
|
"lfm_unknown": {
|
||||||
|
"en": "Unknown Last.FM user. Please set your Last.FM user by typing '~set lastfm <name>' where <name> is your Last.FM username."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user