music can't go higher than 100% now.

This commit is contained in:
Master Kwoth 2016-04-12 00:10:00 +02:00
parent 633c38ba13
commit 2a625451b0
2 changed files with 3 additions and 3 deletions

View File

@ -146,8 +146,8 @@ namespace NadekoBot.Classes.Music
{
if (volume < 0)
volume = 0;
if (volume > 150)
volume = 150;
if (volume > 100)
volume = 100;
Volume = volume / 100.0f;
return volume;

View File

@ -165,7 +165,7 @@ namespace NadekoBot.Modules
});
cgb.CreateCommand("vol")
.Description("Sets the music volume 0-150%\n**Usage**: `!m vol 50`")
.Description("Sets the music volume 0-100%\n**Usage**: `!m vol 50`")
.Parameter("val", ParameterType.Required)
.Do(async e =>
{