Repo/Netlify Functions for responding to various webhooks
A Netlify background function for sending event reminders to our Slack via cronjob.
- Cron Jobs are set up on cron-job.org
- The Netlify function makes a GraphQL request to our CMS to get upcoming events -
weekly
,daily
, andhourly
- Then we filter the events and post to Slack using Slack's Block Kit
A Netlify background function for sending messages to Slack via the Slack Web API.
This function accepts POST requests to send specific messages in Slack. This is set up as a background function in order to prevent our slack event handlers from backing up, and to abstract the Web API connections into one service. All other functions listed below may use this to send messages to Slack.
Handles Slack Events for the VirtualCoffee.io Slack App.
team_join
- sends aaction: 'join'
POST
to/slack-send-message-background
in order to welcome new members to the Slack team
Currently a stub that responds with a 200 OK
message to any request. In order for Slack buttons to not throw an error, bots need interactivity turned on. Currently this endpoint does nothing else.
Handles webhook events from the VC Zoom App.
meeting.started
: Posts a message to the Co-Working Slack channel, and saves a reference to that in airtable.meeting.ended
: Looks up the airtable record for the meeting instance, and updates the Slack message to say it has ended.meeting.participant_joined
: Updates the slack thread for the co-working instance.meeting.participant_left
: Updates the slack thread for the co-working instance.