Meme
This commit is contained in:
parent
781ec9c820
commit
0315770d5a
@ -42,12 +42,10 @@ 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)
|
||||||
meme = json_data["postLink"]
|
|
||||||
title = json_data["title"]
|
title = json_data["title"]
|
||||||
image = json_data["url"]
|
image = json_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)
|
||||||
em.set_footer(text=meme)
|
|
||||||
await ctx.send(embed=em)
|
await ctx.send(embed=em)
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
|
Loading…
Reference in New Issue
Block a user