1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-12 23:20:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-31 09:55:31 +03:00
parent 53f9b2bb72
commit c0651f1ba1

View File

@ -126,7 +126,7 @@ Please provide a value to select one of the search results ranging from __1-10__
errors: ['time'] errors: ['time']
}); });
} catch (err) { } catch (err) {
return msg.channel.send(':x: No or invalid value entered, cancelling song selection.'); return msg.channel.send(':x: Cancelling song selection.');
} }
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);