1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-07 04:20:49 +00:00
This commit is contained in:
MatteZ02
2020-02-05 22:02:53 +02:00
commit d343af3b14
49 changed files with 1248 additions and 0 deletions

View File

@ -0,0 +1,10 @@
module.exports = {
name: 'volume',
async execute(msg, args, client, Discord, prefix) {
if (!args[2]) return msg.channel.send(`:speaker: Current default volume is: \`${client.global.db.guilds[msg.guild.id].defaultVolume}\``);
if (isNaN(args[2])) return msg.channel.send('<:redx:674263474704220182> I\'m sorry, But the default volume needs to be a valid __number__.');
if (args[2].length > 2) return msg.channel.send('<:redx:674263474704220182> The default volume must be below `100` for quality and safety resons.');
client.global.db.guilds[msg.guild.id].defaultVolume = args[2];
msg.channel.send(`<:green_check_mark:674265384777416705> Default volume set to: \`${args[2]}\``);
}
};