Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@user-cube user-cube released this 15 Jan 00:07
· 5 commits to main since this release

Release Notes - Version 1.0.0

Features:

  1. 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).
  2. 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.
  3. 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.
  4. Environment Variable Usage:

    • Uses process.env to read the PORT and DISCORD_WEBHOOK environment variables.
    • Provides default values for PORT (3000) and logs the DISCORD_WEBHOOK value.

Bug Fixes:

  • None in this release.

Known Issues:

  • No handling for failed Discord webhook requests (errors are logged, but no retry mechanism or error response to Heroku).

Future Improvements:

  • Implement a more robust error handling mechanism, including retry logic for Discord webhook requests.
  • Enhance the Discord payload with additional details from the Heroku webhook payload.

Getting Started:

  1. Clone the repository.
  2. Install dependencies using npm install.
  3. Set the DISCORD_WEBHOOK environment variable with your Discord webhook URL.
  4. Start the server using node index.js.

Contributors: