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:
- TFL
- Particle.io using exparticle
- Jenkins (WIP)
If available in Hex, the package can be installed as:
-
Add alfred to your list of dependencies in
mix.exs
:elixir def deps do [{:alfred, "~> 0.0.1"}] end
-
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**