This commit is contained in:
Milka64 2020-03-15 22:21:59 +01:00
commit d3bed5b996

View file

@ -65,9 +65,9 @@ class Mybot(commands.Cog):
api_response.to_dict()['data'][0] api_response.to_dict()['data'][0]
get_url = random.choice(api_response.to_dict()['data']) get_url = random.choice(api_response.to_dict()['data'])
get_url['url'] get_url['url']
ctx.channel.send(get_url['url']) await ctx.channel.send(get_url['url'])
except ApiException as e: except ApiException as e:
ctx.channel.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() @commands.command()
async def welcome(self, ctx): async def welcome(self, ctx):