From ecb9004ec8c591b34e3c93460ed69b9a5ed30e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20H?= Date: Wed, 22 Apr 2020 17:55:10 +0200 Subject: [PATCH] fix volume displaying actual volume instead of user volume --- commands/volume.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/volume.js b/commands/volume.js index 67ef589..c548a49 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -19,17 +19,17 @@ exports.help = { const { setVolume } = require('../utils/music') exports.run = async (client, message, args, level, data) => { - let vol = args[0] + let userVolume = args[0] if (vol) { - vol = Number(vol) + userVolume = Number(vol) - vol = vol / 100 * 0.5 + let vol = userVolume / 100 * 0.25 if (vol <= 1) { setVolume(message.guild, vol) - message.reply('set volume to ' + vol * 100 + '%') + message.reply('set volume to ' + userVolume * 100 + '%') } } }