From 731663ec185bd79e6107ac64e6161c34fb0eafe0 Mon Sep 17 00:00:00 2001 From: Felix Jen Date: Sat, 31 Dec 2016 16:09:00 -0800 Subject: [PATCH] Updated the example configuration ini file --- api/config/config.example.ini | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/config/config.example.ini b/api/config/config.example.ini index ef96d99..4de9c07 100644 --- a/api/config/config.example.ini +++ b/api/config/config.example.ini @@ -10,15 +10,18 @@ APIAI_KEY = "example_key_here" ####### FOR SLACK WEBHOOK ####### -; Below is the Slack webhook token. This is dependent on your Slack channel and account. This token is used to double check the request is indeed coming from Slack and the correct channel, not some other place, since the webhook uses a publically accessible web endpoint. -; To get this token, create a Slack Outgoing Webhook integration (https://slack.com/apps/A0F7VRG6Q-outgoing-webhooks) and paste the token below. If the token is incorrect, the webhook will NOT function! +; Below is the section for integration to your Slack account. You will need to get an Outgoing Webhook token and an Incoming Webhook URL. The Outgoing Webhook will be used to push messages to the API. The Incoming Webhook will be used to return messages over to Slack once the response is generated. +; These integrations are specific to your Slack account and will need to be generated iny our own account. +; To get the Outgoing Webhook token, create a Slack Outgoing Webhook integration (https://slack.com/apps/A0F7VRG6Q-outgoing-webhooks) and paste the token below. If the token is incorrect, the webhook will NOT function! +; To get an Incoming Webhook URL, create a Slack Incoming Webhook integration (https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) and paste the "response URL" below. If this URL is incorrect or not set, the bot will NOT be able to respond to requests. SLACK_TOKEN = "token_here" +SLACK_RESPONSE_URL = "url_here" ; Below are a list of valid Slack user_id's that are allowed to communicate directly using the channel. Getting these user_id's automatically have not been fully implemented yet but are in the works. If you have multiple users needing to use it, simply add more lines like I showed below. If you don't, so be it. Just comment the second line out. VALID_USER_IDS[] = "uuid_here" VALID_USER_IDS[] = "another_uuid_here" -### THID PARTY API KEYS ### +### THIRD PARTY API KEYS ### ####### OPENWEATHERMAP API KEY ####### OPENWEATHERMAP_KEY = "example_key_here"