-
Notifications
You must be signed in to change notification settings - Fork 2
How 2 setup
MikhailShel edited this page Sep 22, 2017
·
1 revision
First thing you have to setup config for transports you are going to use
For now there are 2 transports that come prebuild from the box to set them up you will have to get credentials that are needed(config/config.json)
if you want to use only one of those just remove irrelevant config from config/config.json, so in case if you want to use only Facebook, you would have config that looks something like that:
{ "static_path": "/static", "redis_host": "127.0.0.1", "redis_port": "6379", "transports": { "Facebook": { "verify_token": "***", "access_token": "***", "access_point_root": "/fb_bot" } } }
- go through facebook setup flow to get verify_token, access_token
- Once you aquired those, specify root for an api Access point to hit for bot responses and privacy(look at transport/Facebook.py for details)
- Slack
- Create a bot user at your slack channel, subscribe to message* events
- get verify_token,token, bot_id to be able to receive events and validate endpoint
- Specify root API you want to use to receive all the slack events on
- look at transport/Slack.py for details