Skip to content

Repo/Netlify App for responding to various webhooks

Notifications You must be signed in to change notification settings

Virtual-Coffee/webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webhooks

Repo/Netlify Functions for responding to various webhooks

/event-reminders

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, and hourly
  • Then we filter the events and post to Slack using Slack's Block Kit

/slack-send-message

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.

/slack-events

Handles Slack Events for the VirtualCoffee.io Slack App.

Subscribed events:

  • team_join - sends a action: 'join' POST to /slack-send-message-background in order to welcome new members to the Slack team

/slack-interactivity

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.

/zoom-meeting-webhook-handler

Handles webhook events from the VC Zoom App.

Subscribed events:

  • 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.

About

Repo/Netlify App for responding to various webhooks

Topics

Resources

Code of conduct

Stars

Watchers

Forks