Skip to content
A boilerplate Serverless Slackbot framework with a custom scripts folder (like Hubot)
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src Fix regexp for getId May 19, 2019
test
.gitignore
.jsbeautifyrc
.npmignore
LICENSE
README.md Update README.md Nov 4, 2018
package.json
scripts.json
serverless.yml
yarn.lock

README.md

Serverless Slackbot

This project mimics the Hubot model on Slack using a lot of buzz words including: Serverless.js, AWS API Gateway, AWS Lambda, AWS DynamoDB, AWS SNS, and Slack Events API.

How It Works

Each custom script will run in it's own Lambda process, which is triggered by an SNS notification. Everything runs through a single Lambda handler, so you'll only see one function for everything.

  • OAUTH: API Gateway > Lambda > DynamoDB > API Gateway (redirects)
  • Slack Events: API Gateway > Lambda > DynamoDB > SNS
  • Custom Scripts: SNS > Lambda > Custom Script

Quick Start

  1. Get Serverless.js setup
  2. Create a Slack App
  3. Update the serverless.yml file with the Slack App info [more info]
  4. Write a custom script in the scripts folder
  5. Update the scripts.json file to include your script
  6. Deploy 💥

Usage

Docs coming soon. Check out the example for now

Bot API

Docs coming soon...

You can’t perform that action at this time.