Skip to content

A Hedwig responder that returns an appropriate GIF from the Giphy API.

License

Notifications You must be signed in to change notification settings

stevegrossi/hedwig_giphy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hedwig Giphy

Hex.pm Codeship Status for stevegrossi/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"}
  ]
end

Usage

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 r

Contributing

  1. Fork it!
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'A new feature!')
  4. Push to the branch (git push origin my-new-feature)
  5. Open a new Pull Request

About

A Hedwig responder that returns an appropriate GIF from the Giphy API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published