Whatsapp-Lite (Beta Mode) Added in Config Node
This commit is contained in:
48
whatsappReply.html
Normal file
48
whatsappReply.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('reply',{
|
||||
category: 'whatsapp',
|
||||
color: '#25D366',
|
||||
defaults: {
|
||||
name: {value:"Reply"},
|
||||
instruction : {value : "!red"},
|
||||
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
||||
react : {value: `👍`}
|
||||
},
|
||||
inputs:1,
|
||||
icon: 'whatsappLink.svg',
|
||||
label: function() {
|
||||
return this.name||"Reply";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-template-name="reply">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name" placeholder="Name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-whatsappLink"><i class="fa fa-gear"></i> Client</label>
|
||||
<input type="text" id="node-input-whatsappLink" placeholder="Name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-instruction"><i class="fa fa-tag"></i> Instruction</label>
|
||||
<input type="text" id="node-input-instruction" placeholder="instruction">
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-row">
|
||||
<label for="node-input-react"><i class="fa fa-tag"></i> Reaction</label>
|
||||
<input type="text" id="node-input-react" placeholder="reaction">
|
||||
</div>
|
||||
<div class="form-tips">
|
||||
<p> <b>In Beta mode</b></p>
|
||||
<p>Node will reply on each message starting with string mentioned in instruction or defaults `!red`.</p>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/markdown" data-help-name="reply">
|
||||
##In Beta mode
|
||||
|
||||
Node will reply on each message starting with string mentioned in instruction or defaults `!red`.
|
||||
</script>
|
||||
Reference in New Issue
Block a user