Chatbot for Open311 // Made in Tanzania
- Facebook Messenger Bot
- Allows citizens to submit reports to an Open311-compliant server using a bot
- Gets user location using Facebook Messenger's quick reply button
- Adaptable to other languages, just need to translate locale/en/index.json file
-
Clone this repo
-
Run npm install
npm install --save majibot -
Register a bot @ Ms Bot Framework
-
Configure env variables
cp .env_default .env -
Test locally
nodemon app.js -
You can test locally with ngrok, find more instructions here:
- npm run start :
node app.js - npm run test :
echo "Error: no test specified" && exit 1 - npm run readme :
node ./node_modules/.bin/node-readme
| Package | Version | Dev |
|---|---|---|
| botbuilder | ^3.12.0 | ✖ |
| botbuilder-quickreplies | ^1.1.1 | ✖ |
| dotenv-extended | ^2.0.1 | ✖ |
| request | ^2.83.0 | ✖ |
| restify | ^6.3.4 | ✖ |
| node-readme | ^0.1.9 | ✔ |
Contributions welcome; Please submit all pull requests the against developer branch.
Thanks!
Jean Barroca
Lally Elias
