From 3a96857f514fe7bbf8a33aa0539be005019569ee Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Tue, 28 Mar 2017 11:14:05 +0100 Subject: [PATCH] Fixed parsing when only a sound is specified. --- plugin/play/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/play/play.py b/plugin/play/play.py index 182366c..fdaadc3 100644 --- a/plugin/play/play.py +++ b/plugin/play/play.py @@ -81,7 +81,7 @@ class Play(object): else: break - if not ok: + if not ok or not url or not voice: log.info('Failed to parse play command. Got url {} channel {}'.format(url, voice)) if not url: await bot.say(message.channel, 'what?') -- 2.7.4