https://github.com/localytics/serverless-slackbot-scaffold
Scaffolding for a slackbot
https://github.com/localytics/serverless-slackbot-scaffold
Last synced: 5 months ago
JSON representation
Scaffolding for a slackbot
- Host: GitHub
- URL: https://github.com/localytics/serverless-slackbot-scaffold
- Owner: localytics
- License: mit
- Created: 2016-01-26T18:01:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-29T20:25:37.000Z (over 9 years ago)
- Last Synced: 2024-11-29T09:39:01.986Z (over 1 year ago)
- Language: JavaScript
- Size: 338 KB
- Stars: 84
- Watchers: 10
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#serverless-slackbot-scaffold
[](https://travis-ci.org/localytics/serverless-slackbot-scaffold)
This project is a [khaos template](https://github.com/segmentio/khaos) for building an AWS lambda service that acts as a [slack slash commands](https://api.slack.com/slash-commands) processor. It uses the [Serverless framework](https://github.com/serverless/serverless) for easier deployment to AWS.
## Usage
From the [custom integrations page]() in slack, add a "Slash Commands" integration and retreive the slack verification token.
Install khaos
$ npm install -g khaos
Install the template to your local machine
$ khaos install localytics/serverless-slackbot-scaffold slackbot
Run the templating engine
$ khaos create slackbot
Enter the slack token and hit enter. A new directory will be created that will contain your templated slackbot. If you prefer to have different stages and regions configured for your slackbot, you can modify those settings in `serverless.yml`. See the `Serverless` docs for more information.
## Development
Refer to the templated README file within the new project directory for configuration, deployment, and testing instructions.
## Testing
For testing the template itself, run `bin/test`. Note for test speed, the dependencies are then cached for all subsequent runs in `cache.tar`.