forked from guidone/node-red-contrib-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatbot-audio.html
44 lines (40 loc) · 1.08 KB
/
chatbot-audio.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
<script type="text/javascript">
RED.nodes.registerType('chatbot-audio', {
category: 'RedBot',
color: '#FFCC66',
defaults: {
name: {
value: ''
},
filename: {
value: ''
},
track: {
value: false
}
},
inputs: 1,
outputs: 1,
icon: 'chatbot-audio.png',
paletteLabel: 'Audio',
label: function() {
return this.name || 'Audio';
}
});
</script>
<script type="text/x-red" data-template-name="chatbot-audio">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-filename"><i class="fa fa-file"></i> Filename</label>
<input type="text" id="node-input-filename" placeholder="Filename">
</div>
</script>
<script type="text/x-red" data-help-name="chatbot-audio">
<p>
Send image, prepares the payload to send an image to the chat sender using the <code>Buffer</code> as input or
loading the file if specified in the node config
</p>
</script>