/aws-lambda-serverless-slack-yoga-bot

A slack bot that reminds you to do yoga and stretch a few times a day. Built with Node.js, Serverless-framework, and AWS lambda.

Primary LanguageJavaScript

Welcome to YogaBot!

As developers and other screen-based humans, we tend to forget that our bodies aren't made to sit in a chair and look at a screen for 8-14 hours a day. We built a slack bot at arus.io to remind us to take 5 mins a few times a day and stretch it out!!

Screen Shot 2021-03-05 at 11 45 25 AM

Grab the repo

git clone ...
cd into the repo

Install the deps

npm i

Add your slack webook

await Axios.post(`SLACK-WEBHOOK-URL`,);

Choose your cron

(how often you want it to run)

functions:
  processYoga:
    handler: src/handlers/processYoga.handler
    events:
      - schedule: rate(1 hour)

Deploy to AWS lambda

sls deploy  -v

can run local for debugging if needed

sls invoke -f processYoga -l

Get bendy'!

.....and there ya go!! Hopefully this tool is useful for you to remember to stretch it out! ❤️

Maybe's in the future