mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
a64f9d2325
All messages reworked.
10 lines
584 B
JavaScript
10 lines
584 B
JavaScript
module.exports = {
|
|
name: 'volume',
|
|
async execute(msg, args, client, Discord, prefix) {
|
|
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);
|
|
client.global.db.guilds[msg.guild.id].defaultVolume = args[2];
|
|
msg.channel.send(`${client.messages.defaultVolumeSet} \`${args[2]}\``);
|
|
}
|
|
}; |