From 61146d5f43f6204cb404c69546aef62f68ab3755 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 22 Dec 2016 14:57:32 -0600 Subject: [PATCH] Corrected a couple issues with some variables --- cogs/music.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/music.py b/cogs/music.py index 5ebbc1b..9483b2d 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -283,7 +283,7 @@ class Music: song = re.sub('[<>\[\]]', '', song) try: - _entry = await state.songs.add_entry(song, ctx.message.author) + _entry, position = await state.songs.add_entry(song, ctx.message.author) except WrongEntryTypeError: # This means that a song was attempted to be searched, instead of a link provided info = await self.downloader.extract_info(self.bot.loop, song, download=False, process=True) @@ -297,6 +297,7 @@ class Music: # Obviously this doesn't work in Discord, so just remove this error = " ".join(error.split()[1:]) await self.bot.send_message(ctx.message.channel, error) + return await self.bot.say('Enqueued ' + str(_entry)) @commands.command(pass_context=True, no_pm=True)