Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.13 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.13 KB

Alfred

Slack bot that leverage the power of Api.ai to understand the message sent and process it accordingly

The bot supported at the moment are:

Installation

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

  1. Add alfred to your list of dependencies in mix.exs: elixir def deps do [{:alfred, "~> 0.0.1"}] end

  2. Ensure alfred is started before your application: elixir def application do [applications: [:alfred]] end

You need to add the following environment variables in order to setup Alfred

  • Slack token

    export SLACK_BOT_TOKEN=**token**
  • Api.Ai credentials

    export API_AI_TOKEN=**token**
    export API_AI_KEY=**key**

Bot variables:

  • Particle.io

    export PARTICLE_TOKEN=**token**
    export PARTICLE_DEVICE_ID=**devise_id**
  • TFL api

    export TFL_APP_ID=**app_id**
    export TFL_APP_KEY=**app_key**