use typing with cmds which hit up memeapi
@@ -43,6 +43,7 @@ class Fun(commands.Cog):
meme = {'nsfw': True, 'spoiler': True}
+ async with ctx.typing():
while meme['spoiler'] or (not do_nsfw and meme['nsfw']):
meme = await (await self.ses.get('https://meme-api.herokuapp.com/gimme/meme+memes+me_irl+dankmemes')).json()
@@ -62,6 +63,7 @@ class Fun(commands.Cog):
jj = {'nsfw': True, 'spoiler': True}
+ async with ctx.typing():
while not do_nsfw and jj['nsfw']:
jj = await (await self.ses.get('https://meme-api.herokuapp.com/gimme/greentext')).json()
@@ -81,6 +83,7 @@ class Fun(commands.Cog):
jj = {'nsfw': True, 'spoiler': True}
+ async with ctx.typing():
while not do_nsfw and jj['nsfw']:
jj = await (await self.ses.get('https://meme-api.herokuapp.com/gimme/comics')).json()
