Messenger Bot for DevC Nairobi
This is a Messenger Bot that helps with some ops, running the developer community. Some of the features are:
- Signing up members
- Adding members to the Github org
- Subscribing members on the mailinglist
- RSVPing for events
- Event listing (past and upcoming) - TBD
- Post-event surveys - TBD
- Node 6.9.0+
- Git
- Ngrok
- Set environment variables as follows:
- Copy
.env.sample
to.env
(all env settings will live on this file) - Register a Firebase test app and use the provided settings to update the
FB_
settings in the just created.env
file. Ensure database rules are set to public write i.e.:{ "rules": { ".read": false, ".write": true } }
- On your Github settings page, create a new personal access token with at least scope(
admin:org - write
) and updateGH_OAUTH_TOKEN
with the generated token. - You may need to create a test Github org in order to update
GH_ORG
. - Run
ngrok http 5000
and note the generated https url. - Set up your bot's Facebook webhook using the ngrok url.
- Use the provided Facebook developer app credentials to update
PAGE_TOKEN
,VERIFY_TOKEN
andAPP_SECRET
.
- Copy
- Install required node packages with
npm install
. - Run the bot with
npm start
.
- The code is validated using ESLint.
- If you are using Atom you should install the following plugins:
- TODO