|
3 | 3 | # ComfyUI-DiscordSend |
4 | 4 |
|
5 | 5 |  |
6 | | - |
| 6 | + |
7 | 7 |  |
8 | 8 |  |
9 | 9 | <br> |
|
24 | 24 |
|
25 | 25 | --- |
26 | 26 |
|
27 | | -## What's New in v1.1.0 (January 10, 2026) |
| 27 | +## What's New in v2.0.0 (January 20, 2026) |
28 | 28 |
|
29 | | -### 🚀 Core Updates |
30 | | -- **Structured Logging**: Implemented comprehensive logging for better debugging and stability. |
31 | | -- **Testing Suite**: Added initial test framework to ensure reliability. |
32 | | -- **Enhanced Stability**: Various improvements to image and video handling logic. |
| 29 | +### 🚀 Major Refactoring Release |
| 30 | +- **New Architecture**: Reorganized into `nodes/`, `shared/`, and `bot/` packages for cleaner separation of concerns. |
| 31 | +- **BaseDiscordNode**: Shared base class eliminates 620 lines of duplicated code across image and video nodes. |
| 32 | +- **Shared Utilities**: 17 modular utility files covering Discord webhooks, media processing, and workflow handling. |
| 33 | +- **Discord Bot** *(optional)*: New standalone bot with slash commands, WebSocket reconnection, and job queuing. |
| 34 | +- **Performance**: Optimized image processing with direct Torch operations (~70% faster tensor processing). |
33 | 35 |
|
34 | 36 | 📄 See [CHANGELOG.md](CHANGELOG.md) for the complete version history. |
35 | 37 |
|
@@ -125,6 +127,21 @@ pip install -r requirements-bot.txt |
125 | 127 | > - **Nodes only** require just the `requests` library (1 dependency). |
126 | 128 | > - **Discord bot** requires additional dependencies (discord.py, aiohttp, sqlalchemy, etc.). |
127 | 129 |
|
| 130 | +## 🏗️ Architecture Overview |
| 131 | + |
| 132 | +This extension contains **two independent systems**. Most users only need the nodes. |
| 133 | + |
| 134 | +| | ComfyUI Nodes | Discord Bot | |
| 135 | +|---|---|---| |
| 136 | +| **What it does** | Send images/videos to Discord from your workflow | Standalone bot that lets Discord users trigger ComfyUI workflows via slash commands | |
| 137 | +| **How to use** | Add `DiscordSendSaveImage` or `DiscordSendSaveVideo` to your workflow | Run `python -m bot` as a separate process alongside ComfyUI | |
| 138 | +| **Auth method** | Paste a **webhook URL** directly into the node | Requires a **bot token** from the Discord Developer Portal | |
| 139 | +| **Config files needed** | ❌ None — everything is configured in the node itself | ✅ `.env` or `config.yaml` (copy from `.env.example` / `config.yaml.example`) | |
| 140 | +| **Dependencies** | `requests` only | `discord.py`, `aiohttp`, `sqlalchemy`, etc. | |
| 141 | + |
| 142 | +> [!NOTE] |
| 143 | +> The `.env.example` and `config.yaml.example` files in the repository root are **only for the optional Discord bot**. If you just want to send images/videos to Discord from your ComfyUI workflows, you do not need these files. Simply paste your Discord webhook URL into the node's `webhook_url` field. |
| 144 | +
|
128 | 145 | ## ⚙️ Settings |
129 | 146 |
|
130 | 147 | ### Discord Webhook Setup |
|
0 commit comments