music can't go higher than 100% now.
This commit is contained in:
parent
633c38ba13
commit
2a625451b0
@ -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;
|
||||
|
@ -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 =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user