Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevegrossi/hedwig_giphy
A Hedwig responder that returns an appropriate GIF from the Giphy API.
https://github.com/stevegrossi/hedwig_giphy
chatbot elixir giphy-api hedwig
Last synced: 6 days ago
JSON representation
A Hedwig responder that returns an appropriate GIF from the Giphy API.
- Host: GitHub
- URL: https://github.com/stevegrossi/hedwig_giphy
- Owner: stevegrossi
- License: mit
- Created: 2017-01-21T19:21:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T19:53:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-28T22:54:44.548Z (19 days ago)
- Topics: chatbot, elixir, giphy-api, hedwig
- Language: Elixir
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Hedwig Giphy
[![Hex.pm](https://img.shields.io/hexpm/v/hedwig_giphy.svg)](https://hex.pm/packages/hedwig_giphy)
![Codeship Status for stevegrossi/hedwig_giphy](https://img.shields.io/codeship/bf6ea900-c23e-0134-01b0-22c030d3a647.svg)A [Hedwig](https://github.com/hedwig-im/hedwig) responder that returns an appropriate GIF from the Giphy API.
## Installation
Add `hedwig_giphy` to your list of dependencies in `mix.exs`:
```elixir
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`:
```elixir
config :alfred, Alfred.Robot,
adapter: Hedwig.Adapters.Console,
responders: [
{HedwigGiphy.Responders.GifMe, []},
# ...
]
```## Configuration
There are some default configuration values you can override:
```elixir
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!](http://github.com/stevegrossi/hedwig_giphy/fork)
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