Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanwinchester/hedwig_youtube

Hedwig Youtube Responder
https://github.com/ryanwinchester/hedwig_youtube

bot hedwig irc-bot responder slack-bot

Last synced: about 11 hours ago
JSON representation

Hedwig Youtube Responder

Awesome Lists containing this project

README

        

# Hedwig Youtube Responder

[![Hex.pm](https://img.shields.io/hexpm/v/hedwig_youtube.svg)](https://hex.pm/packages/hedwig_youtube)
[![Hex.pm](https://img.shields.io/hexpm/l/hedwig_youtube.svg)](https://hex.pm/packages/hedwig_youtube)
[![Hex.pm](https://img.shields.io/hexpm/dt/hedwig_youtube.svg)](https://hex.pm/packages/hedwig_youtube)
[![Build Status](https://travis-ci.org/ryanwinchester/hedwig_youtube.svg?branch=master)](https://travis-ci.org/ryanwinchester/hedwig_youtube)

## Installation

Add to the deps in `mix.exs`

```elixir
def deps do
[
{:hedwig_youtube, "~> 0.1.0"},
]
end
```

## Config

Add the responder to your `:responders` list in your bot config, `config/config.exs`

```elixir
config :my_robot, MyApp.MyRobot,
responders: [
{Hedwig.Responders.Youtube, []},
]
```

## Environment variables

- `YOUTUBE_KEY` environment variable for your **youtube API key**

```elixir
config :hedwig_youtube,
youtube_key: {:system, "YOUTUBE_KEY"}
```

Or, you can override the config, like so:

```elixir
config :hedwig_youtube,
youtube_key: "abcdefg12345678"
```