mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Patch 3.10.2
This commit is contained in:
parent
388597412a
commit
79f32a80e5
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "musix",
|
||||
"version": "3.10.1",
|
||||
"version": "3.10.2",
|
||||
"description": "V3 for Musix the discord music bot",
|
||||
"main": "./index.js",
|
||||
"scripts": {
|
||||
@ -48,4 +48,4 @@
|
||||
"ytsr": "^0.1.15",
|
||||
"zlib-sync": "^0.1.7"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -192,6 +192,7 @@ module.exports = {
|
||||
stop: emojis.stop + "Stopped the music!",
|
||||
tookTooLong: emojis.redx + "Something took too long! Please try again!",
|
||||
validNumber: emojis.redx + "I'm sorry, But you need to enter a valid __number__.",
|
||||
videoUnavailable: emojis.redx + "That video is unavaiable! Please try again.",
|
||||
wrongVoiceChannel: emojis.redx +
|
||||
"I'm sorry but you need to be in the same voice channel as Musix to use this command!",
|
||||
};
|
@ -31,7 +31,12 @@ module.exports = async function (guild, song, client, seek, play) {
|
||||
if (song.type === "ytdl" || song.type === "spotify")
|
||||
input = ytdl(song.url, streamConfig.ytdlOptions)
|
||||
//.on('info', (info, format) => console.log(format))
|
||||
.on("error", (error) => console.log(error));
|
||||
.on("error", (error) => {
|
||||
console.log(error)
|
||||
queue.voiceChannel.leave();
|
||||
client.queue.delete(guild.id);
|
||||
queue.textChannel.send(client.messages.videoUnavailable)
|
||||
});
|
||||
|
||||
const ffmpegArgs = [
|
||||
"-analyzeduration",
|
||||
|
Loading…
Reference in New Issue
Block a user