Repository navigation
Releases: caiolombello/DiscordWebhookSender
Release list
v1.1.0
Overview
This release introduces support for Discord embeds, allowing users to send richer messages with additional customizations.
New Features
- Embed Support: You can now include embeds in your Discord messages.
- Title: Add a title to your embed using the
DISCORD_EMBED_TITLEenvironment variable. - Description: Add a description to your embed using the
DISCORD_EMBED_DESCRIPTIONenvironment variable. - Color: Customize the embed color using the
DISCORD_EMBED_COLORenvironment variable (in hexadecimal format without#).
- Title: Add a title to your embed using the
Enhancements
- Environment Variables: Updated to include optional variables for embed customization.
- Documentation:
- Added instructions and examples for sending simple messages and messages with embeds.
- Updated environment variable list to include embed options.
- Testing:
- Added unit tests to cover new embed functionality.
How to Use
For a simple message:
docker run --rm \
-e DISCORD_WEBHOOK_URL="<YOUR_WEBHOOK_URL>" \
-e DISCORD_MESSAGE="<YOUR_MESSAGE>" \
discord-webhook-senderFor 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>" \
discord-webhook-senderEnvironment 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).
Contribution
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
v1.0.0
Overview
This is the initial release of DiscordWebhookSender, a tool designed to send messages to a Discord webhook using Python and Docker. This release includes all the core features and functionality necessary for deploying and running the application.
Features
- Webhook Messaging: Send messages to a specified Discord webhook URL.
- Dockerized: Containerized using Docker for easy deployment and consistent environments.
- CI/CD Integration: Automated build and push of Docker images to DockerHub using GitHub Actions.
- Code Quality Tools:
- Linting: Integrated with
black,ruff, andmypyfor code formatting and static type checking. - Testing: Unit tests using
pytestto ensure code reliability.
- Linting: Integrated with
- Development Environment: Managed using
poetryfor dependency management and packaging.
Installation and Usage
Docker
-
Build the Docker image:
make docker-build
-
Run the Docker container:
docker run --rm -e DISCORD_WEBHOOK_URL="<YOUR_WEBHOOK_URL>" -e DISCORD_MESSAGE="<YOUR_MESSAGE>" discord-webhook-sender
Local Development
-
Install dependencies:
poetry install
-
Run tests:
poetry run make test
Environment Variables
DISCORD_WEBHOOK_URL: The URL of the Discord webhook.DISCORD_MESSAGE: The message to be sent.
Contribution
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.