Update kabot/kabot/kabot.py #57

Merged
Milka64 merged 1 commit from Milka64-master-patch-96392 into master 2020-11-22 21:30:15 +01:00

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']