From 4eb3ac358e59329254376f14960e1fd035aab6fd Mon Sep 17 00:00:00 2001 From: Raas Ahsan Date: Tue, 22 Jan 2019 01:33:00 -0600 Subject: [PATCH] don't await for get_next_song --- apophis/cmds/music.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apophis/cmds/music.py b/apophis/cmds/music.py index 7752ded..3d663a9 100644 --- a/apophis/cmds/music.py +++ b/apophis/cmds/music.py @@ -73,7 +73,7 @@ async def after_song(old_context, message): } await stop_playing(new_context) - next_song_id = await get_next_song() + next_song_id = get_next_song() if next_song_id is None: pass else: @@ -87,7 +87,7 @@ async def stop_playing(context) -> None: voice.stop() -async def get_next_song() -> Optional[int]: +def get_next_song() -> Optional[int]: try: return song_queue.get_nowait() except QueueEmpty: @@ -214,7 +214,7 @@ async def handle(self, context, message): return await message.add_reaction('\u2705') elif content[0].startswith('next'): await stop_playing(context) - next_song_id = await get_next_song() + next_song_id = get_next_song() if next_song_id is None: return message.channel.send('No more songs in queue.') else: