1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +00:00

Merge pull request #6 from MatteZ02/master

Update play.js
This commit is contained in:
Christer Warén 2019-10-11 20:40:32 +03:00 committed by GitHub
commit 208c1dfdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,13 +54,13 @@ module.exports = {
});
} catch (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);
var video = await youtube.getVideoByID(videos[videoIndex - 1].id);
} catch (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);