2020-02-05 20:02:53 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'volume',
|
|
|
|
async execute(msg, args, client, Discord, prefix) {
|
2020-03-12 11:56:31 +00:00
|
|
|
if (!args[2]) return msg.channel.send(`${client.messages.currentDefaultVolume} \`${client.global.db.guilds[msg.guild.id].defaultVolume}\``);
|
|
|
|
if (isNaN(args[2])) return msg.channel.send(client.messages.defaultVolumeNumber);
|
|
|
|
if (args[2].length > 2) return msg.channel.send(client.messages.defaultVolumeMax);
|
2020-02-05 20:02:53 +00:00
|
|
|
client.global.db.guilds[msg.guild.id].defaultVolume = args[2];
|
2020-03-12 11:56:31 +00:00
|
|
|
msg.channel.send(`${client.messages.defaultVolumeSet} \`${args[2]}\``);
|
2020-02-05 20:02:53 +00:00
|
|
|
}
|
|
|
|
};
|