From 8560f29e17bb8b2d71a558ec0b77a1f852841de2 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 25 Apr 2018 22:08:45 -0500 Subject: [PATCH] Correct sleep --- cogs/spotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/spotify.py b/cogs/spotify.py index f5948ec..e9c421a 100644 --- a/cogs/spotify.py +++ b/cogs/spotify.py @@ -31,7 +31,7 @@ class Spotify: data = await response.json() self._token = data.get("access_token") - await asyncio.wait(data.get("expires_in")) + await asyncio.sleep(data.get("expires_in", 2400)) @commands.group(invoke_without_command=True) @commands.guild_only()