This is an ultra simple slack bot that checks how long it takes a website to respond.
It is meant to run serverless using AWS API Gateway and Lambda. I use Up to make my life easier.
You can find an actual walk through of the tutorial and a coupon for Up (50% off forever) here: https://pagertree.com/2018/03/21/serverless-part-4-serverless-tools-and-best-practices/
npm install
up deploy production
To add security to your bot make sure to add the TOKEN
environment variable in the up.json
file. This will perform the Slack request authentication.