To launch bot locally you need:
- create .env file and add secrets (use .env.sample as example)
- run
npm start
- run
ngrok http 3000
in 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 Secret
from theApp Credentials
section on your SlackBasic Information
app page - botToken: Use
Bot User OAuth Access Token
from theTokens for Your Workspace
section on your SlackOAuth & Permissions
app 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