A Slack Bot which pairs users together on demand.
- Make sure postgres is installed and set the following environment variables:
PG_USER
- name of postgres user that can create tablesPG_PASSWORD
- password for that postgres user
- Get a Bot User OAuth Access Token. See https://api.slack.com/bot-users for
details on how to get this.
- Set the
SLACK_PAIRMOTRON_BOT_USER_ACCESS_TOKEN
environment variable to this API key.
- Set the
- Fetch elixir dependencies
mix deps.get
- Create and migrate the database
mix ecto.setup
- Install javascript dependencies
cd assets && npm install
This is also a phoenix server. Start with:
mix phx.server
If everything is wired up properly you should see "Successfully connected to Slack as <Your bot name>"
in the console.
You can also visit localhost:4000
from your browser,
but this doesn't do anything special at the moment.