Merge branch 'Milka64-master-patch-96392' into 'master'
Update kabot/kabot/kabot.py See merge request Milka64/kabot!1
This commit is contained in:
commit
0bbe882e77
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class Mybot(commands.Cog):
|
||||||
api_key = "udhL9Rgdme3HpAoFhWVZoYM0l0XwkzLz"
|
api_key = "udhL9Rgdme3HpAoFhWVZoYM0l0XwkzLz"
|
||||||
lang = 'fr'
|
lang = 'fr'
|
||||||
try:
|
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]
|
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']
|
||||||
|
|
Loading…
Reference in a new issue