Skip to content

MeetMangrove/familybot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mangrove Familybot

All our bots in one place!

Usages

Installation

Clone the repo, then run:

$ npm install

Setup environment

Create a .env file with the following variables and their values:

RACHID_FIREBASE_URI=***
RACHID_SLACK_CLIENT_ID=***
RACHID_SLACK_CLIENT_SECRET=***

FRESHMANATEE_FIREBASE_URI=***
FRESHMANATEE_SLACK_CLIENT_ID=***
FRESHMANATEE_SLACK_CLIENT_SECRET=***

FIRECRAB_FIREBASE_URI=***
FIRECRAB_SLACK_CLIENT_ID=***
FIRECRAB_SLACK_CLIENT_SECRET=***

GHOST_FIREBASE_URI=***
GHOST_SLACK_CLIENT_ID=***
GHOST_SLACK_CLIENT_SECRET=***

AIRTABLE_API_KEY=***
AIRTABLE_BASE_KEY=***

GMAIL_API_CLIENT_ID=***
GMAIL_API_CLIENT_SECRET=***
GMAIL_API_CREDENTIALS=***

SLACK_TEAM_ID=***
HOSTNAME=***

Use a tunnelling software like ngrok to expose each bot under its own domain.

Start ngrok:

$ ngrok http 5000

Then set the HOSTNAME env to the new ngrok url.

Build bots

All bots can be tested individually through the Ghost bot on the Mangrove Slack. All messages will be posted in #ghost-playground channel

Run Rachid:

$ npm run rachid

Run Firecrab:

$ npm run firecrab

Run Freshmanatee:

$ npm run freshmanatee

Run all the bots in production:

$ npm start

Dev tools

Generate Gmail Credentials:

$ npm run credentials_gmail

Lint code:

$ npm run lint

Fix lint errors:

$ npm run fix

Building app:

$ npm run build

Releases

No releases published

Packages

No packages published