Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonchurch/dancong
Multi-bot tenancy Proof of Concept
https://github.com/jonchurch/dancong
Last synced: 22 days ago
JSON representation
Multi-bot tenancy Proof of Concept
- Host: GitHub
- URL: https://github.com/jonchurch/dancong
- Owner: jonchurch
- Created: 2017-07-18T01:21:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T02:53:23.000Z (over 7 years ago)
- Last Synced: 2024-10-06T14:40:53.263Z (3 months ago)
- Language: JavaScript
- Size: 402 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Botkit React FB Login
## Setup
To run locally, clone the project and enter the directory. Run:
```
API_ROOT=http://localhost:3001 \
DATABASE= \
APP_ID= \
APP_SECRET= \
VERIFY_TOKEN= npm start
```Minimal example of getting manage_pages and pages_messaging permissions via FB login to setup a Botkit bot.
Uses React to power the frontend, a node express api to interact with a mongodb, and Botkit running on a custom express server.
## Botkit
This project uses a custom branch of the [Botkit](http://github.com/howdyai/botkit) bot framework available [here](https://github.com/jonchurch/botkit/tree/dancong). This branch allows for bailing out of hears triggers by returning true at any point. Returning true will stop execution of that handler, and move on to any other matches based on the original user input.
An example of this behavior is available [here](https://github.com/jonchurch/botkit/blob/dancong/docs/readme.md#control-flow)