This commit is contained in:
tropii 2023-11-24 17:52:17 -05:00
parent 890421b27b
commit aa2787fd4a

View File

@ -42,9 +42,9 @@ class meme(commands.Cog):
response = requests.request("GET", url, headers=headers) response = requests.request("GET", url, headers=headers)
json_data = json.loads(response.text) json_data = json.loads(response.text)
title = json_data[1] new_data = json_data[1]
await ctx.send(title) title = new_data["title"]
image = json_data[2] image = new_data["url"]
em = discord.Embed(title=title, color=ctx.author.color) em = discord.Embed(title=title, color=ctx.author.color)
em.set_image(url=image) em.set_image(url=image)
await ctx.send(embed=em) await ctx.send(embed=em)