Hedwig Giphy
A Hedwig responder that returns an appropriate GIF from the Giphy API.
Installation
Add hedwig_giphy to your list of dependencies in mix.exs:
def deps do
[
{:hedwig, "~> 1.0"},
{:hedwig_giphy, "~> 0.1"}
]
endUsage
Add the responder to the Hedwig.Robot’s config section of your config/config.exs:
config :alfred, Alfred.Robot,
adapter: Hedwig.Adapters.Console,
responders: [
{HedwigGiphy.Responders.GifMe, []},
# ...
]Configuration
There are some default configuration values you can override:
config :hedwig_giphy,
api_key: "dc6zaTOxFJmzC", # Giphy’s public beta API key
rating: "pg-13" # y, g, pg, pg-13 or rContributing
- Fork it!
-
Create your feature branch (
git checkout -b my-new-feature) -
Commit your changes (
git commit -am 'A new feature!') -
Push to the branch (
git push origin my-new-feature) - Open a new Pull Request