swapagarwal / JARVIS-on-Messenger

:speech_balloon: A community-driven python bot that aims to be as simple as possible to serve humans with their everyday tasks
https://m.me/J.A.R.V.I.S.on.Messenger
MIT License
1.35k stars 988 forks source link

Return (semi-)random gif using the giphy API #153

Open tdraebing opened 7 years ago

tdraebing commented 7 years ago

Hi,

how about using the giphy API (https://github.com/Giphy/GiphyAPI) to get gifs? This could be fully random currently trending gifs or targeted searches. e.g. JARVIS show me a gif of funny cats would search the API with the search terms [funny, cats] and would return a random gif given back by the API response.

swapagarwal commented 7 years ago

@tdraebing Can't say no to funny cat gifs! 😆

swapagarwal commented 7 years ago

I've requested for a production key; till then you can test with the public beta key dc6zaTOxFJmzC. Let me know if you run into any issues! 😄

swapagarwal commented 7 years ago

They replied saying that bots should use the public key only! So you can go ahead and set that in config.py