fix volume displaying actual volume instead of user volume
This commit is contained in:
parent
8373194feb
commit
ecb9004ec8
1 changed files with 4 additions and 4 deletions
|
@ -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 + '%')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue