1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00

chore 3.6.2

This commit is contained in:
MatteZ02 2020-06-23 19:34:14 +03:00
parent 2d7752d2cf
commit 780113355a
2 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "musix", "name": "musix",
"version": "3.6.1", "version": "3.6.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": {

View File

@ -1,12 +1,14 @@
module.exports = async function (client, error, guild) { module.exports = {
const queue = client.queue.get(guild.id); async execute(client, error, guild) {
console.log(error); const queue = client.queue.get(guild.id);
/*if (error = "Error: input stream: This video contains content from WMG, who has blocked it on copyright grounds.") { console.log(error);
queue.endReason = "skip"; /*if (error = "Error: input stream: This video contains content from WMG, who has blocked it on copyright grounds.") {
queue.connection.dispatcher.end(); queue.endReason = "skip";
return queue.textChannel.send(client.messages.songBlockedWMG); queue.connection.dispatcher.end();
}*/ return queue.textChannel.send(client.messages.songBlockedWMG);
queue.voiceChannel.leave(); }*/
client.queue.delete(guild.id); queue.voiceChannel.leave();
return queue.textChannel.send(client.messages.errorDispatcher + `\`${error}\``); client.queue.delete(guild.id);
return queue.textChannel.send(client.messages.errorDispatcher + `\`${error}\``);
},
}; };