From 5e862d2fd4ade336844bead0b66be81ec1b23f4e Mon Sep 17 00:00:00 2001 From: Dayuppy Date: Sat, 14 Sep 2024 10:45:45 +0000 Subject: [PATCH] Updated files Added compatibility for ComfyUI-Manager. --- node_list.json | 3 +++ nodes.py | 12 +++++++++--- requirements.txt | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 node_list.json create mode 100644 requirements.txt diff --git a/node_list.json b/node_list.json new file mode 100644 index 0000000..d0e5f4f --- /dev/null +++ b/node_list.json @@ -0,0 +1,3 @@ +NODE_CLASS_MAPPINGS = { + "DiscordPostViaWebhook": DiscordPostViaWebhook +} \ No newline at end of file diff --git a/nodes.py b/nodes.py index a925252..69ad999 100644 --- a/nodes.py +++ b/nodes.py @@ -1,3 +1,10 @@ +""" +@author: Dayuppy +@title: Discord Webhook +@nickname: DiscordWebhook +@description: A very simple Discord webhook integration node for ComfyUI that lets you post images and text with optional metadata. +""" + import os import json import tempfile @@ -13,10 +20,9 @@ class DiscordPostViaWebhook: OUTPUT_TOOLTIPS = ("Image Output Pass-through",) OUTPUT_NODE = True FUNCTION = "execute" - CATEGORY = "Dayuppy Test Nodes" + CATEGORY = "Discord" DESCRIPTION = "Post image and message to Discord using webhook" - DEPRECATED = False - EXPERIMENTAL = True + EXPERIMENTAL = False @classmethod def INPUT_TYPES(cls): diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8fec95a --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +discord_webhook \ No newline at end of file