1
0
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:
MatteZ02 2020-07-29 21:56:10 +03:00
parent 388597412a
commit 79f32a80e5
3 changed files with 9 additions and 3 deletions

View File

@ -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": {

View File

@ -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!",
};

View File

@ -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",