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-07-09 21:16:41 +00:00
parent 8688ee05ba
commit 7eeb687385

View File

@ -20,6 +20,7 @@ var soundcloud = function(dbot) {
}, function(error, response, body) {
if(body.length != 0) {
body = body[0];
if(!body.genre) body.genre = '';
event.reply(dbot.t('sc_track', {
'title': body.title,
'artist': body.user.username,
@ -49,6 +50,7 @@ var soundcloud = function(dbot) {
}, function(error, response, body) {
if(response.statusCode == 200) {
if(body.kind == 'track') {
if(!body.genre) body.genre = '';
event.reply(dbot.t('sc_track', {
'title': body.title,
'artist': body.user.username,