forked from raweee/node-red-contrib-whatsapp-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
whatsappReply.html
48 lines (44 loc) · 1.69 KB
/
whatsappReply.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>