fix volume displaying actual volume instead of user volume

This commit is contained in:
Lukáš H 2020-04-22 17:55:10 +02:00
parent 8373194feb
commit ecb9004ec8
No known key found for this signature in database
GPG Key ID: E07D6630DBC17195
1 changed files with 4 additions and 4 deletions

View File

@ -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 + '%')
}
}
}