Update kabot/kabot/kabot.py

This commit is contained in:
Milka64 2020-11-22 20:29:59 +00:00
parent ba5e20d415
commit 1dd31a4a81

View file

@ -207,7 +207,7 @@ class Mybot(commands.Cog):
api_key = "udhL9Rgdme3HpAoFhWVZoYM0l0XwkzLz"
lang = 'fr'
try:
api_response = api_instance.gifs_search_get(api_key, query, lang=lang, limit=10)
api_response = api_instance.gifs_search_get(api_key, query, lang=lang, limit=15)
api_response.to_dict()['data'][0]
get_url = random.choice(api_response.to_dict()['data'])
get_url['url']