Whatsapp Node
Just for test here, will use console print first
This commit is contained in:
Generated
+3
@@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@@ -0,0 +1,9 @@
|
||||
from .whatsapp_notify_node import WhatsAppNotifyNode
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"WhatsAppNotifyNode": WhatsAppNotifyNode,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"WhatsAppNotifyNode": "📲 WhatsApp Notify",
|
||||
}
|
||||
@@ -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 ()
|
||||
Reference in New Issue
Block a user