umutxyp / MusicBot

An enhanced music bot that is compatible with discord.js v14 and works with slash commands. Discord music bot codes that can be used on any server and are simple to install.
https://discord.gg/codes
969 stars 1.07k forks source link

volume in config.js not being applied #108

Closed jchrist188 closed 1 year ago

jchrist188 commented 1 year ago

changing value maxVol in config.js is not being changed in bot audio levels. bot audio appears to be full volume despite /nowplaying volume showing 50% and config.js set to 25

image

andybergner commented 1 year ago

create a new file initQueue.js in events/player and try to include that:

module.exports = async (client, queue) => { queue.volume = client.config.opt.maxVol };

Reminder: i haven't tried it

omgomghax commented 1 year ago

player.setVolume(25);

add this below const player = client.player; (in main file)

i guess lxgg142's reply could work while i didnt try it but with queue.setVolume