#1 add gif command

This commit is contained in:
BFlow 2020-03-15 22:18:29 +01:00
parent 49c5960a9c
commit 1bc5f97f79

View file

@ -65,9 +65,9 @@ class Mybot(commands.Cog):
api_response.to_dict()['data'][0]
get_url = random.choice(api_response.to_dict()['data'])
get_url['url']
ctx.channel.send(get_url['url'])
await ctx.channel.send(get_url['url'])
except ApiException as e:
ctx.send("Exception when calling DefaultApi->gifs_search_get: %s\n" % e)
await ctx.channel.send("Exception when calling DefaultApi->gifs_search_get: %s\n" % e)
@commands.command()
async def welcome(self, ctx):