- Refactor shared logic into `utils/`: - `sanitizer.py`, `prompt_extractor.py`, `github_integration.py`, `discord_api.py`. - Update `discord_image_node.py` and `discord_video_node.py` to use new utilities. - Add `.gitignore` and remove accidentally tracked `__pycache__` files. - Bump version to 1.1.0 in `pyproject.toml`.
20 lines
593 B
Python
20 lines
593 B
Python
"""
|
|
ComfyUI-DiscordSend Utility Package
|
|
|
|
Shared utilities for Discord integration, sanitization, and GitHub CDN operations.
|
|
"""
|
|
|
|
from .sanitizer import sanitize_json_for_export
|
|
from .github_integration import update_github_cdn_urls
|
|
from .prompt_extractor import extract_prompts_from_workflow
|
|
from .discord_api import DiscordWebhookClient, validate_webhook_url, send_to_discord_with_retry
|
|
|
|
__all__ = [
|
|
'sanitize_json_for_export',
|
|
'update_github_cdn_urls',
|
|
'extract_prompts_from_workflow',
|
|
'DiscordWebhookClient',
|
|
'validate_webhook_url',
|
|
'send_to_discord_with_retry',
|
|
]
|