From 9fda303ab1999fe24d481c7486ed2f4217da74aa Mon Sep 17 00:00:00 2001 From: phxntxm Date: Fri, 19 Aug 2016 02:00:50 -0500 Subject: [PATCH] Corrected error where .json() wasn't being awaited) --- cogs/steam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/steam.py b/cogs/steam.py index 861c5cc..6b14b24 100644 --- a/cogs/steam.py +++ b/cogs/steam.py @@ -51,7 +51,7 @@ class Steam: except ValueError: steam_id = await self.find_id(user) - await self.bot.say("User given was: {}\nFound steam_id") + await self.bot.say("User given was: {}\nFound steam_id: {}".format(user, steam_id)) if steam_id is None: await self.bot.say("Sorry, couldn't find that Steam user!") @@ -59,7 +59,7 @@ class Steam: url = "{}&appid=730&steamid={}".format(base_url, steam_id) async with self.session.get(url, headers=self.headers) as response: - data = response.json() + data = await response.json() stuff_to_print = ['total_kills', 'total_deaths', 'total_wins', 'total_mvps'] stats = "\n".join(