-
Express.js Server Setup:
- Utilizes the Express.js framework to create a web server.
- Listens on the specified port (
process.env.PORT
or defaulting to 3000).
-
Heroku Webhook Handling:
- Provides a route (
/heroku-webhook
) to handle incoming Heroku webhook events. - Extracts relevant data from the Heroku webhook payload, including event data and metadata.
- Formats a message based on the extracted data to provide a concise summary of the Heroku event.
- Provides a route (
-
Discord Webhook Integration:
- Utilizes the Axios library to send a formatted payload to a Discord webhook.
- The Discord payload includes an embed with information about the Heroku event.
-
Environment Variable Usage:
- Uses
process.env
to read thePORT
andDISCORD_WEBHOOK
environment variables. - Provides default values for
PORT
(3000) and logs theDISCORD_WEBHOOK
value.
- Uses
-
Notifications
You must be signed in to change notification settings - Fork 0
WebCDC/heroku-discord
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Micro service that allows you to send webhooks from heroku to discord.