mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
Update index.js
This commit is contained in:
parent
53f9b2bb72
commit
c0651f1ba1
2
index.js
2
index.js
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user