Skip to content

kieran/torontojs-event-bot

Repository files navigation

TorontoJS event bot

It posts events to the TorontoJS slack #events channel

example

Local dev

# setup
nvm use
npm i

# run a dev server on port 3000
npm run dev

Endpoints

GET   /week
  display slack payload for the week
  
POST  /week
  post this week's events to slack
  
GET   /today
   display slack payload for today
   
POST  /today
  post today's events to slack

Deploy

I deployed this to AWS Lambda using apex up (which seems to be sunsetted now)

You could deploy it anywhere a node service can run, including your local machine / network.

# staging deploy
up

# production deploy
up deploy production

# get staging URL:
up url

# get production URL:
up url -s production

Super-secret slack webhook URL is stored in Lambda's ENV store:

up env add SLACK_WEBHOOK="https://secret.url/here" -s production

You'd want to ensure the above ENV var is available if you actually want to post to slack

Right now it's scheduled using cron-job.org - every morning at 8am for daily events and every week on Sunday at 8pm for the coming week

About

A slack message bot to post upcoming JS events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published