forked from GitHub/dbot
doh
This commit is contained in:
parent
8688ee05ba
commit
7eeb687385
@ -20,6 +20,7 @@ var soundcloud = function(dbot) {
|
|||||||
}, function(error, response, body) {
|
}, function(error, response, body) {
|
||||||
if(body.length != 0) {
|
if(body.length != 0) {
|
||||||
body = body[0];
|
body = body[0];
|
||||||
|
if(!body.genre) body.genre = '';
|
||||||
event.reply(dbot.t('sc_track', {
|
event.reply(dbot.t('sc_track', {
|
||||||
'title': body.title,
|
'title': body.title,
|
||||||
'artist': body.user.username,
|
'artist': body.user.username,
|
||||||
@ -49,6 +50,7 @@ var soundcloud = function(dbot) {
|
|||||||
}, function(error, response, body) {
|
}, function(error, response, body) {
|
||||||
if(response.statusCode == 200) {
|
if(response.statusCode == 200) {
|
||||||
if(body.kind == 'track') {
|
if(body.kind == 'track') {
|
||||||
|
if(!body.genre) body.genre = '';
|
||||||
event.reply(dbot.t('sc_track', {
|
event.reply(dbot.t('sc_track', {
|
||||||
'title': body.title,
|
'title': body.title,
|
||||||
'artist': body.user.username,
|
'artist': body.user.username,
|
||||||
|
Loading…
Reference in New Issue
Block a user