changed music up

This commit is contained in:
Emily 2020-04-19 20:10:52 +10:00
parent 93926545ae
commit 4ff85905ff
5 changed files with 197 additions and 197 deletions

View file

@ -15,6 +15,7 @@ exports.help = {
parameters: '[volume] - Target volume from 0-100%'
}
const { setVolume } = require('../utils/music')
exports.run = async (client, message, args, level, data) => {
let vol = args[0]
@ -24,7 +25,7 @@ exports.run = async (client, message, args, level, data) => {
vol = vol / 100 * 0.5
if (vol <= 1) {
client.music.setVolume(message.guild, vol)
setVolume(message.guild, vol)
message.reply('set volume to ' + vol * 100 + '%')
}