mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
doh
This commit is contained in:
parent
8688ee05ba
commit
7eeb687385
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user