make 50% volume of video max/default

This commit is contained in:
Lukáš Horáček 2020-04-12 10:39:41 +02:00
parent aedce9fc34
commit b254495fd3
No known key found for this signature in database
GPG key ID: E07D6630DBC17195
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ exports.run = async (client, message, args, level, data) => {
if(vol) {
vol = Number(vol);
vol = vol / 100 * 0.25;
vol = vol / 100 * 0.5;
if(vol <= 1) {
client.music.setVolume(message.guild, vol);

View file

@ -124,7 +124,7 @@ module.exports = client => {
let v = guild.queue[0];
guild.dispatcher = connection.play(await ytdl(client.music.getLinkFromID(v.video.id.videoId)), {type: 'opus'});
guild.dispatcher.setVolume(0.25);
guild.dispatcher.setVolume(0.5);
message.reply('playing **' + v.video.snippet.title + '**');
};