Skip to content

A boilerplate Serverless Slackbot framework with a custom scripts folder (like Hubot)

License

Notifications You must be signed in to change notification settings

johnagan/serverless-slackbot

Repository files navigation

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

Docs coming soon...

About

A boilerplate Serverless Slackbot framework with a custom scripts folder (like Hubot)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published