From 745fe4dd1f72a8a66d6875c654a47bf260bb3967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Mon, 18 Dec 2023 00:43:18 +0100 Subject: [PATCH] Correctif --- cogs/cog_fact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/cog_fact.py b/cogs/cog_fact.py index 492d3b0..efcb9bc 100644 --- a/cogs/cog_fact.py +++ b/cogs/cog_fact.py @@ -32,7 +32,7 @@ class Fact(MyCog): try: async with aiohttp.ClientSession() as session: - await response = session.get("https://fr.wikipedia.org/api/rest_v1/page/random/summary", headers=headers) + response = await session.get("https://fr.wikipedia.org/api/rest_v1/page/random/summary", headers=headers) embed = Embed( title=response.json.get("title", "Titre inconnu"),