Sign inSign up

caiolombello/discord-webhook-sender

By caiolombello

•Updated over 2 years ago

Send messages to a Discord webhook using a Dockerized Python application.

Image
Integration & delivery
Developer tools
Monitoring & observability
0

383

caiolombello/discord-webhook-sender repository overview

⁠DiscordWebhookSender

DiscordWebhookSender is a Dockerized Python application designed to send messages to a Discord webhook.

⁠Features

  • Webhook Messaging: Easily send messages to a specified Discord webhook URL.
  • Embed Support: Send richer messages with embeds, including title, description, and color.
  • Dockerized: Containerized for consistent environments and easy deployment.
  • CI/CD Integration: Automated builds and pushes to DockerHub using GitHub Actions.

⁠How to Use

⁠Run the Docker Container
  1. Pull the image:

    docker pull caiolombello/discord-webhook-sender:latest
    
  2. Run the container:

    For a simple message:

    docker run --rm \
      -e DISCORD_WEBHOOK_URL="<YOUR_WEBHOOK_URL>" \
      -e DISCORD_MESSAGE="<YOUR_MESSAGE>" \
      caiolombello/discord-webhook-sender:latest
    

    For a message with embed:

    docker run --rm \
      -e DISCORD_WEBHOOK_URL="<YOUR_WEBHOOK_URL>" \
      -e DISCORD_MESSAGE="<YOUR_MESSAGE>" \
      -e DISCORD_EMBED_TITLE="<YOUR_EMBED_TITLE>" \
      -e DISCORD_EMBED_DESCRIPTION="<YOUR_EMBED_DESCRIPTION>" \
      -e DISCORD_EMBED_COLOR="<YOUR_EMBED_COLOR>" \
      caiolombello/discord-webhook-sender:latest
    
⁠Environment Variables
  • DISCORD_WEBHOOK_URL: The URL of the Discord webhook.
  • DISCORD_MESSAGE: The message to be sent.
  • DISCORD_EMBED_TITLE: The title of the embed (optional).
  • DISCORD_EMBED_DESCRIPTION: The description of the embed (optional).
  • DISCORD_EMBED_COLOR: The color of the embed in hexadecimal format without # (optional).

⁠Source Code

The source code for this project is available on GitHub: GitHub Repository⁠

⁠License

This project is licensed under the MIT License. See the LICENSE⁠ file for details.

Tag summary

Content type

Image

Digest

sha256:f8e022d79…

Size

10.5 MB

Last updated

over 2 years ago

docker pull caiolombello/discord-webhook-sender