Merge branch 'Milka64-master-patch-96392' into 'master'

Update kabot/kabot/kabot.py

See merge request Milka64/kabot!1
This commit is contained in:
Milka64 2020-11-22 20:30:14 +00:00
commit 0bbe882e77

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