diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..129a15e --- /dev/null +++ b/__init__.py @@ -0,0 +1,9 @@ +from .whatsapp_notify_node import WhatsAppNotifyNode + +NODE_CLASS_MAPPINGS = { + "WhatsAppNotifyNode": WhatsAppNotifyNode, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "WhatsAppNotifyNode": "📲 WhatsApp Notify", +} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/whatsapp_notify_node.py b/whatsapp_notify_node.py new file mode 100644 index 0000000..5d6cc44 --- /dev/null +++ b/whatsapp_notify_node.py @@ -0,0 +1,16 @@ +class WhatsAppNotifyNode: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "message": ("STRING", {"default": "✅ Workflow complete!"}), + } + } + + RETURN_TYPES = () # No outputs + FUNCTION = "notify" + CATEGORY = "Notifications" + + def notify(self, message: str): + print(f"[📲 WhatsAppNotifyNode] Message to send: {message}") + return ()