1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Added a check in case the volume passed is higher than max

This commit is contained in:
Phxntxm 2016-08-27 22:26:23 -05:00
parent e101ba3120
commit ceddb2b7c8

View file

@ -303,6 +303,9 @@ class Music:
"""Sets the volume of the currently playing song."""
state = self.get_voice_state(ctx.message.server)
if value > 200:
await self.bot.say("Sorry but the max volume is 200")
return
if state.is_playing():
player = state.player
player.volume = value / 100