To launch bot locally you need:
- create .env file and add secrets (use .env.sample as example)
- run
npm start - run
ngrok http 3000in order to make bot visible in internet - Create your own Slack app here
- add url which ngrok generates for bot to Event Subscriptions page (example of url -
https://82f6e9d9.ngrok.io/api/messages)
Then bot will be available in slack.
- clientSigningSecret: Use
Signing Secretfrom theApp Credentialssection on your SlackBasic Informationapp page - botToken: Use
Bot User OAuth Access Tokenfrom theTokens for Your Workspacesection on your SlackOAuth & Permissionsapp page
Deployment is run automatically after merging changes to the master branch.
Mona deployed on Heroku.
We're using mocha with botkit-mock for testing.
In order to run all specs, execute command bellow in the project's root folder:
./bin/mocha specs