forgot to await res.json()
@@ -41,7 +41,7 @@ class Fun(commands.Cog):
meme = {'nsfw': True, 'spoiler': True}
while meme['spoiler'] or (not do_nsfw and meme['nsfw']):
- meme = (await self.ses.get('https://meme-api.herokuapp.com/gimme/meme+memes+me_irl+dankmemes')).json()
+ meme = await (await self.ses.get('https://meme-api.herokuapp.com/gimme/meme+memes+me_irl+dankmemes')).json()
embed = discord.Embed(color=self.bot.cc, title=meme['title'], url=meme['postLink'])
embed.set_image(url=meme['url'])
@@ -60,7 +60,7 @@ class Fun(commands.Cog):
jj = {'nsfw': True, 'spoiler': True}
while not do_nsfw and jj['nsfw']:
- jj = (await self.ses.get('https://meme-api.herokuapp.com/gimme/greentext')).json()
+ jj = await (await self.ses.get('https://meme-api.herokuapp.com/gimme/greentext')).json()
embed = discord.Embed(color=self.bot.cc, title=jj['title'], url=jj['postLink'])
embed.set_image(url=jj['url'])
@@ -79,7 +79,7 @@ class Fun(commands.Cog):
jj = {'nsfw': True, 'spoiler': True}
while not do_nsfw and jj['nsfw']:
- jj = (await self.ses.get('https://meme-api.herokuapp.com/gimme/comics')).json()
+ jj = await (await self.ses.get('https://meme-api.herokuapp.com/gimme/comics')).json()
embed = discord.Embed(color=self.bot.cc, title=jj['title'], url=jj['postLink'])
embed.set_image(url=jj['url'])
