1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-03 16:24:28 +00:00

Chore update 3.10.0

This commit is contained in:
MatteZ02
2020-07-18 22:33:09 +03:00
parent 1ce6c40a9b
commit ef195e4377
14 changed files with 50 additions and 45 deletions

View File

@ -3,7 +3,6 @@ module.exports = {
description: "Boost the bass in your music!",
alias: ["none"],
usage: "<bass>",
cooldown: 5,
onlyDev: false,
permission: "MANAGE_MESSAGES",
category: "audio modifiers",
@ -15,8 +14,8 @@ module.exports = {
);
const bass = parseFloat(args[1]);
if (client.funcs.check(client, msg, command)) {
if (queue.nigthCore)
return msg.channel.send(client.messages.disableNigthCore);
if (queue.nightCore)
return msg.channel.send(client.messages.disableNightCore);
if (isNaN(bass)) return msg.channel.send(client.messages.validNumber);
if (bass > 10) return msg.channel.send(client.messages.maxBass);
if (bass < 0) return msg.channel.send(client.messages.positiveBass);

View File

@ -1,8 +1,8 @@
module.exports = {
name: "nigthcore",
name: "nightcore",
alias: ["nc"],
usage: "<true/false>",
description: "Change nigthcore audio modifier on/off",
description: "Change nightcore audio modifier on/off",
onlyDev: false,
permission: "MANAGE_MESSAGES",
category: "audio modifiers",
@ -10,16 +10,16 @@ module.exports = {
const queue = client.queue.get(msg.guild.id);
if (!args[1] && queue)
return msg.channel.send(
`${client.messages.currentNigthCore}**${queue.nigthCore}**`
`${client.messages.currentNightCore}**${queue.nightCore}**`
);
if (client.funcs.check(client, msg, command)) {
if (args[1] === "true") {
queue.nigthCore = true;
queue.nightCore = true;
} else if (args[1] === "false") {
queue.nigthCore = false;
queue.nightCore = false;
} else return msg.channel.send(client.messages.boolean);
let message;
message = client.messages.nigthCoreApplied.replace("%BOOLEAN%", args[1]);
message = client.messages.nightCoreApplied.replace("%BOOLEAN%", args[1]);
return msg.channel.send(message);
}
},

View File

@ -38,7 +38,7 @@ module.exports = {
.setURL(queue.songs[0].url)
.setThumbnail(thumbnail.url)
.setColor(client.config.embedColor);
if (queue.nigthCore)
if (queue.nightCore)
embed.setDescription(
`${client.messages.nowPlayingDesc} ${queue.songs[0].title} \nchannel: \`${queue.songs[0].info.author.name}\``
);

View File

@ -50,18 +50,12 @@ module.exports = {
client.spotify.searchTracks(`track:${videos[videoIndex].title}`)
.then(function (data) {
client.funcs.handleVideo(
videoResults[0].link,
msg,
voiceChannel,
client,
false,
"ytdl",
videos[videoIndex].link, msg, voiceChannel, client, false, "ytdl",
data.body.tracks.items[0]
);
}, function (err) {
console.log('Something went wrong!', err);
});
return client.funcs.handleVideo(videos[videoIndex].link, msg, voiceChannel, client, false, "ytdl");
})
}
};

View File

@ -9,8 +9,8 @@ module.exports = {
async execute(msg, args, client, Discord, command) {
const queue = client.queue.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
if (queue.nigthCore)
return msg.channel.send(client.messages.disableNigthCore);
if (queue.nightCore)
return msg.channel.send(client.messages.disableNightCore);
if (!args[1])
return msg.channel.send(
`${client.messages.correctUsage}\`${