Correctif
This commit is contained in:
parent
c8eb921d8b
commit
745fe4dd1f
|
@ -32,7 +32,7 @@ class Fact(MyCog):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
async with aiohttp.ClientSession() as session:
|
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(
|
embed = Embed(
|
||||||
title=response.json.get("title", "Titre inconnu"),
|
title=response.json.get("title", "Titre inconnu"),
|
||||||
|
|
Loading…
Reference in New Issue