mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
Update index.js
This commit is contained in:
parent
b8416bac27
commit
04314762cc
6
index.js
6
index.js
@ -220,8 +220,8 @@ Please provide a value to select one of the search results ranging from __1-10__
|
|||||||
let index = 0;
|
let index = 0;
|
||||||
msg.channel.send(`
|
msg.channel.send(`
|
||||||
__**Song selection:**__
|
__**Song selection:**__
|
||||||
${videos.map(video2 => `**${++index} -** ${video2.title}`).join('\n')}
|
${videos.map(video2 => `**${++index} -** ${video2.title}`).join('\n')}
|
||||||
Please provide a value to select one of the search results ranging from 1-10.
|
Please provide a value to select one of the search results ranging from 1-10.
|
||||||
`);
|
`);
|
||||||
// eslint-disable-next-line max-depth
|
// eslint-disable-next-line max-depth
|
||||||
try {
|
try {
|
||||||
@ -320,7 +320,7 @@ async function handleVideo(video, msg, voiceChannel, playlist = false) {
|
|||||||
queueConstruct.connection = connection;
|
queueConstruct.connection = connection;
|
||||||
play(msg.guild, queueConstruct.songs[0]);
|
play(msg.guild, queueConstruct.songs[0]);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`:x: I could not join the voice channel: ${error}`);
|
console.error(`I could not join the voice channel: ${error}`);
|
||||||
queue.delete(msg.guild.id);
|
queue.delete(msg.guild.id);
|
||||||
return msg.channel.send(`:x: I could not join the voice channel: ${error}`);
|
return msg.channel.send(`:x: I could not join the voice channel: ${error}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user