[![Build Status](](

# HedwigMattermost

Mattermost adapter for the Hedwig bot framework.

## Installation

If [available in Hex](, the package can be installed as:

  1. Add `hedwig_mattermost` to your list of dependencies in `mix.exs`:

    def deps do
      [{:hedwig_mattermost, "~> 0.1.0"}]

  2. Ensure `hedwig_mattermost` is started before your application:

    def application do
      [applications: [:hedwig_mattermost]]

## Configuration

In addition to the standard Hedwig configuration parameter,s HedwigMattermost requires the following configuration to be present: `mattermost_url`, `username` and `password`. `username` and `password` must match a user account for your Mattermost instance. `username` can be either an email or username, depending on the settings for email authentication in Mattermost. Example:

config :alfred, Alfred.Robot,
  adapter: HedwigMattermost.Adapter,
  name: "alfred",
  aka: "/",
  username: "",
  password: "super_secret",
  mattermost_url: "",
  responders: [
    {Hedwig.Responders.Help, []},
    {Hedwig.Responders.Ping, []}