From 7cef2964784079374aee7ce9fe3b494886ea4388 Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Fri, 5 Feb 2021 22:42:02 -0600 Subject: [PATCH] Make bot async --- cogs/timings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/timings.py b/cogs/timings.py index 4a8dc19..73ca570 100644 --- a/cogs/timings.py +++ b/cogs/timings.py @@ -59,9 +59,9 @@ class Timings(commands.Cog): async with aiohttp.ClientSession() as session: async with session.get(timings_url_raw) as response: - request_raw = response.json() + await request_raw = response.json() async with session.get(timings_json) as response: - request = response.json() + await request = response.json() if request is None or request_raw is None: embed_var.add_field(name="❌ Invalid report", value="Create a new timings report.")