mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Merge pull request #6 from rookwood101/patch-1
Fixed typo that allowed arbitrary volumes
This commit is contained in:
commit
cc8b4b0585
2
red.py
2
red.py
@ -1131,7 +1131,7 @@ async def setVolume(message):
|
||||
msg = msg.split(" ")
|
||||
try:
|
||||
vol = float(msg[1])
|
||||
if vol >= 0 or vol <= 1:
|
||||
if vol >= 0 and vol <= 1:
|
||||
settings["VOLUME"] = vol
|
||||
await(client.send_message(message.channel, "`Volume set. Next track will have the desired volume.`"))
|
||||
dataIO.fileIO("settings.json", "save", settings)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user