1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +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", "name": "musix",
"version": "3.10.1", "version": "3.10.2",
"description": "V3 for Musix the discord music bot", "description": "V3 for Musix the discord music bot",
"main": "./index.js", "main": "./index.js",
"scripts": { "scripts": {
@ -48,4 +48,4 @@
"ytsr": "^0.1.15", "ytsr": "^0.1.15",
"zlib-sync": "^0.1.7" "zlib-sync": "^0.1.7"
} }
} }

View File

@ -192,6 +192,7 @@ module.exports = {
stop: emojis.stop + "Stopped the music!", stop: emojis.stop + "Stopped the music!",
tookTooLong: emojis.redx + "Something took too long! Please try again!", tookTooLong: emojis.redx + "Something took too long! Please try again!",
validNumber: emojis.redx + "I'm sorry, But you need to enter a valid __number__.", 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 + wrongVoiceChannel: emojis.redx +
"I'm sorry but you need to be in the same voice channel as Musix to use this command!", "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") if (song.type === "ytdl" || song.type === "spotify")
input = ytdl(song.url, streamConfig.ytdlOptions) input = ytdl(song.url, streamConfig.ytdlOptions)
//.on('info', (info, format) => console.log(format)) //.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 = [ const ffmpegArgs = [
"-analyzeduration", "-analyzeduration",