https://github.com/datarockets/mona
Mona is a bot that cares about datarockets
https://github.com/datarockets/mona
Last synced: about 1 year ago
JSON representation
Mona is a bot that cares about datarockets
- Host: GitHub
- URL: https://github.com/datarockets/mona
- Owner: datarockets
- Created: 2015-08-29T14:41:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T12:17:13.000Z (over 1 year ago)
- Last Synced: 2025-04-14T05:52:51.733Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.23 MB
- Stars: 9
- Watchers: 19
- Forks: 1
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mona
## Launching locally
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](https://api.slack.com/apps)
- add url which ngrok generates for bot to [Event Subscriptions page](https://api.slack.com/apps/AJWCSQ4CU/event-subscriptions?) (example of url - `https://82f6e9d9.ngrok.io/api/messages`)
Then bot will be available in slack.
## dotenv configuration
- __clientSigningSecret__: Use `Signing Secret` from the `App Credentials` section on your Slack `Basic Information` app page
- __botToken__: Use `Bot User OAuth Access Token` from the `Tokens for Your Workspace` section on your Slack `OAuth & Permissions` app page
## Deployment
Deployment is run automatically after merging changes to the master branch.
Mona deployed on Heroku.
## Testing
We're using `mocha` with [botkit-mock](https://github.com/gratifyguy/botkit-mock) for testing.
In order to run all specs, execute command bellow in the project's root folder:
```
./bin/mocha specs
```