Ajout du volume max

This commit is contained in:
Lantium 2022-04-18 22:12:32 +02:00
parent 5bac7f38f3
commit 05776de276

View File

@ -17,9 +17,10 @@ module.exports = {
if (queue.volume === vol) return message.channel.send(`The volume you want to change is already the current one ${message.author}... try again ? ❌`);
//:if (vol < 0 || vol > maxVol) return message.channel.send(`The specified number is not valid. Enter a number between **1** and **${maxVol}** ${message.author}... try again ? ❌`);
if (vol === "666") return message.channel.send('Welcome to the Hell ... but no ...');
if (vol < 0 || vol > maxVol) return message.channel.send(`The specified number is not valid. Enter a number between **1** and **${maxVol}** ${message.author}... try again ? ❌`);
const success = queue.setVolume(vol);