Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Micro service that allows you to send webhooks from heroku to discord.

NotificationsYou must be signed in to change notification settings

WebCDC/heroku-discord

Repository files navigation

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:

    • Usesprocess.env to read thePORT andDISCORD_WEBHOOK environment variables.
    • Provides default values forPORT (3000) and logs theDISCORD_WEBHOOK value.

About

Micro service that allows you to send webhooks from heroku to discord.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

[8]ページ先頭

©2009-2025 Movatter.jp