ComfyUI-SendToDiscord
A custom node for ComfyUI that allows sending preview images directly to Discord via webhooks, with support for batch mode and metadata.
Paketprofil
- Status
- Überprüft
- Verleger
- @gmorks
- Quelle
- GitHub
README
ComfyUI-SendToDiscord
ComfyUI-SendToDiscord is a custom node for ComfyUI that simplifies sending preview images to Discord via webhooks. It supports both single-image uploads and batch mode with intelligent fallback, automatic compression, and workflow preservation, making it an efficient and robust tool for sharing your generated images directly with your Discord server.
Node Preview
- Workflow included in the image
Features
- Smart Image Delivery: Send individual or batches of images with intelligent fallback (individual sending if batch fails)
- Automatic Compression: WebP compression with configurable quality to optimize file sizes
- Workflow Preservation: Automatically preserves ComfyUI workflow JSON when compressing images
- Metadata Support: Includes prompts and additional PNG information in saved images
- Advanced Configuration: Extensive configuration options for compression, fallback, and file size limits
- Visual Status Indicators: Real-time progress indicators with emoji feedback
- Robust Error Handling: Graceful handling of network issues and Discord API limits
- Output Node Compatibility: Functions as both preview and output node for flexible workflow integration
Requirements
- Python 3.10+
Pillow,requests, andnumpylibraries (automatically installed viarequirements.txt).
Installation
- Find it at ComfyUI Registry
- Or using comfy-cli:
comfy node registry-install comfyui-sendtodiscord
Manual Install
- Clone the repository into your ComfyUI custom nodes directory:
git clone https://github.com/gmorks/ComfyUI-SendToDiscord.git - Install dependencies:
cd ComfyUI-SendToDiscord pip install -r requirements.txt - Configure the
config.inifile:- Locate the
config.ini.templatefile in the root directory. - Copy it and rename it to
config.ini:cp config.ini.template config.ini - Open the
config.inifile and replace the placeholder with your Discord webhook URL:; Configuration file for ComfyUI-SendToDiscord ; Replace 'your-webhook-url-here' with your Discord webhook URL. ; You can get a webhook URL by going to your Discord server settings, then Integrations, then Webhooks, then New Webhook. [Discord] webhook_url = your-webhook-url-here
- Locate the
Dependencies
This node has been tested with the following Python packages:
Pillow>=11.0.0(updated for better WebP support and performance)requests>=2.32.0(updated for security improvements)numpy>=1.26.0(updated for compatibility)
If you encounter issues, please ensure these versions or higher are installed, or consult the official ComfyUI documentation for compatible dependencies.
Usage
- Open ComfyUI.
- Add the "Preview Image (with Discord option)" node to your workflow.
- Configure the node parameters:
- Send to Discord: Enable or disable image uploads to Discord.
- Batch Mode: Enable to accumulate images and send them in a single batch.
- Passthrough Image (optional): Input for passing images through to other nodes.
- Generate your images, and they will be uploaded automatically to the specified Discord channel.
Configuration
Node Parameters
- images: The list of images to process.
- send_to_discord: Enable or disable sending images to Discord (enable/disable).
- batch_mode: Accumulate images and send them as a batch (enable/disable).
- passthrough_image (optional): Input for chaining with other nodes.
Advanced Configuration (config.ini)
The node supports extensive configuration options in your config.ini file:
[Discord]
webhook_
Knoten in diesem Paket
1 Knoten
Knoten in diesem Paket
1 Knoten- PreviewImageWithDiscord
Quellen
3 Quellen
Quellen
3 QuellenVerifiziert 11. Okt.
Verifiziert 11. Okt.
Quellenauszüge
1 Auszug
Quellenauszüge
1 AuszugSource context: Repo gmorks/ComfyUI-SendToDiscord
