From ceddb2b7c87c68c91ab8738fab66e959860bb0b0 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 27 Aug 2016 22:26:23 -0500 Subject: [PATCH] Added a check in case the volume passed is higher than max --- cogs/playlist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/playlist.py b/cogs/playlist.py index 5c3a006..605c5de 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -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