2020-03-03 20:24:41 +00:00
|
|
|
module.exports = {
|
2020-04-19 17:00:16 +00:00
|
|
|
name: "bass",
|
|
|
|
description: "Bassboost command.",
|
|
|
|
alias: "none",
|
|
|
|
usage: "<bass>",
|
|
|
|
cooldown: 5,
|
|
|
|
onlyDev: false,
|
|
|
|
permission: "MANAGE_MESSAGES",
|
|
|
|
category: "music",
|
|
|
|
execute(msg, args, client, Discord, command) {
|
|
|
|
const queue = client.queue.get(msg.guild.id);
|
|
|
|
if (!args[1] && queue)
|
|
|
|
return msg.channel.send(
|
|
|
|
`${client.messages.currentBass}**${queue.bass}**`
|
|
|
|
);
|
|
|
|
const bass = parseFloat(args[1]);
|
|
|
|
if (client.funcs.check(client, msg, command)) {
|
|
|
|
if (queue.nigthCore)
|
|
|
|
return msg.channel.send(client.messages.disableNigthCore);
|
|
|
|
if (isNaN(bass)) return msg.channel.send(client.messages.validNumber);
|
|
|
|
if (bass > 100) return msg.channel.send(client.messages.maxBass);
|
|
|
|
if (bass < 0) return msg.channel.send(client.messages.positiveBass);
|
|
|
|
queue.bass = bass;
|
|
|
|
client.funcs.end(
|
|
|
|
client,
|
|
|
|
msg,
|
|
|
|
(queue.connection.dispatcher.streamTime + queue.time) / 1000,
|
|
|
|
command
|
|
|
|
);
|
|
|
|
let message;
|
|
|
|
message = client.messages.bassApplied.replace("%BASS%", bass);
|
|
|
|
return msg.channel.send(message);
|
2020-03-03 20:24:41 +00:00
|
|
|
}
|
2020-04-19 17:00:16 +00:00
|
|
|
},
|
2020-03-03 20:24:41 +00:00
|
|
|
};
|