From b254495fd3819c06a20682ca3e687837e45fd325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hor=C3=A1=C4=8Dek?= Date: Sun, 12 Apr 2020 10:39:41 +0200 Subject: [PATCH] make 50% volume of video max/default --- commands/volume.js | 2 +- helpers/music.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/volume.js b/commands/volume.js index 1ed9893..94b5d9d 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -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); diff --git a/helpers/music.js b/helpers/music.js index cf1b800..3f2df52 100644 --- a/helpers/music.js +++ b/helpers/music.js @@ -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 + '**'); };