From 05776de276ec341e9df98b2094b1979b569d79dc Mon Sep 17 00:00:00 2001 From: Lantium Date: Mon, 18 Apr 2022 22:12:32 +0200 Subject: [PATCH] Ajout du volume max --- commands/music/volume.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/music/volume.js b/commands/music/volume.js index 928425e..95b0532 100644 --- a/commands/music/volume.js +++ b/commands/music/volume.js @@ -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);