fix code format

This commit is contained in:
Emily 2020-04-13 14:28:53 +10:00
parent a067c957c1
commit 9fd2c873ca
5 changed files with 136 additions and 144 deletions

View file

@ -4,8 +4,7 @@ exports.conf = {
aliases: [],
permLevel: 'User',
requiredPerms: [],
cooldown: 2000,
joinArguments: 1
cooldown: 2000
}
exports.help = {
@ -16,6 +15,6 @@ exports.help = {
parameters: '[query] - A query to find video by or a link to the video.'
}
exports.run = async (client, message, args, level, data) => {
await client.music.play(message, args[0]);
};
exports.run = async (client, message, [...args], level, data) => {
await client.music.play(message, args)
}

View file

@ -1,9 +1,9 @@
exports.conf = {
enabled: true,
guildOnly: true,
aliases: [],
aliases: ['vol'],
permLevel: 'Moderator',
requiredPerms: ['vol'],
requiredPerms: [],
cooldown: 2000
}
@ -16,17 +16,17 @@ exports.help = {
}
exports.run = async (client, message, args, level, data) => {
let vol = args[0];
let vol = args[0]
if(vol) {
vol = Number(vol);
if (vol) {
vol = Number(vol)
vol = vol / 100 * 0.5;
vol = vol / 100 * 0.5
if(vol <= 1) {
client.music.setVolume(message.guild, vol);
if (vol <= 1) {
client.music.setVolume(message.guild, vol)
message.reply('set volume to ' + vol * 100 + '%');
};
};
};
message.reply('set volume to ' + vol * 100 + '%')
}
}
}