2020-03-03 20:24:41 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'bass',
|
|
|
|
description: 'Bassboost command.',
|
|
|
|
alias: 'none',
|
|
|
|
usage: '<bass>',
|
|
|
|
cooldown: 5,
|
2020-03-04 14:32:39 +00:00
|
|
|
onlyDev: true,
|
2020-03-03 20:24:41 +00:00
|
|
|
permission: 'MANAGE_MESSAGES',
|
|
|
|
category: 'music',
|
|
|
|
execute(msg, args, client, Discord, prefix, command) {
|
2020-03-14 16:38:02 +00:00
|
|
|
const queue = client.queue.get(msg.guild.id);
|
|
|
|
if (!args[1] && queue) return msg.channel.send(`${client.messages.currentBass}**${queue.bass}**`);
|
2020-03-03 20:24:41 +00:00
|
|
|
const bass = parseFloat(args[1]);
|
|
|
|
if (client.funcs.check(client, msg, command)) {
|
2020-03-12 11:56:31 +00:00
|
|
|
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);
|
2020-03-14 16:38:02 +00:00
|
|
|
queue.bass = bass;
|
2020-03-13 14:20:23 +00:00
|
|
|
let message;
|
|
|
|
message = client.messages.bassApplied.replace("%BASS%", bass);
|
|
|
|
return msg.channel.send(message);
|
2020-03-03 20:24:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|