From 8661b3d64854f9772cd75cd0f136c9bf799df8bf Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Tue, 28 Mar 2017 11:15:56 +0100 Subject: [PATCH] Fixed default channel for playing. --- plugin/play/play.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/play/play.py b/plugin/play/play.py index fdaadc3..2d48ac8 100644 --- a/plugin/play/play.py +++ b/plugin/play/play.py @@ -81,6 +81,9 @@ class Play(object): else: break + if ok and not voice: + voice = bot.voice_channel_for_user(message.author) + 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: -- 2.7.4