mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
Update play.js
This commit is contained in:
parent
fb8ae3cf35
commit
4bda51e696
@ -54,13 +54,13 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return Message.channel.send(':x: Cancelling video selection.');
|
return message.channel.send(':x: Cancelling video selection or no results.');
|
||||||
}
|
}
|
||||||
const videoIndex = parseInt(response.first().content);
|
const videoIndex = parseInt(response.first().content);
|
||||||
var video = await youtube.getVideoByID(videos[videoIndex - 1].id);
|
var video = await youtube.getVideoByID(videos[videoIndex - 1].id);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send(':x: I could not obtain any search results.');
|
return message.channel.send(':x: Cancelling video selection or no results');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return client.funcs.handleVideo(video, message, voiceChannel, client, false);
|
return client.funcs.handleVideo(video, message, voiceChannel, client, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user