fix code format
This commit is contained in:
parent
a067c957c1
commit
9fd2c873ca
5 changed files with 136 additions and 144 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 + '%')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue