bencentra / hubot-giphy-gifme

"gif me" command for Hubot, get random GIFs from Giphy!
MIT License
6 stars 2 forks source link
gif giphy hubot

hubot-giphy-gifme

Get a random GIF from Giphy! Search by tags! Yeah!

Built with the wonderful Giphy API.

Commands

You can include tags in a number of ways:

These will all result in the same search "american+psycho". See the random endpoint docs for more info.

Usage

In your hubot instance, include this script like so:

external-scripts.json

[
  ...
  "hubot-giphy-gifme"
]

package.json

{
  ...
  "dependencies": {
    ...
    "hubot-giphy-gifme": "^1.0.0"
  }
}

You can configure the script with the following environment variables:

Contributing

Setting Up a Hubot Instance

See the hubot docs for info on setting up your own hubot instance.

To run Hubot with your local copy of hubot-giphy-gifme, add it to the scripts/ directory:

mkdir hubot/scripts
cp hubot-giphy-gifme/src/giphy-gifme.coffee hubot/scripts/giphy-gifme.coffee

You can set the additional environment variable DEBUG to enable console output:

DEBUG=* bin/hubot

License

MIT. See LICENSE.md.