forked from guidone/node-red-contrib-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatbot-waiting.html
48 lines (46 loc) · 1.59 KB
/
chatbot-waiting.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('chatbot-waiting', {
category: 'RedBot',
color: '#FFCC66',
defaults: {
waitingType: {
value: ''
}
},
inputs: 1,
outputs: 1,
icon: 'chatbot-waiting.png',
paletteLabel: 'Waiting',
label: function() {
return 'Waiting...';
}
});
</script>
<script type="text/x-red" data-template-name="chatbot-waiting">
<div class="form-row">
<label for="node-input-type"><i class="icon-cog"></i> Type</label>
<select id="node-input-waitingType">
<option value="">Default</option>
<option value="typing">Typing</option>
<option value="upload_photo">Uploading a photo</option>
<option value="record_video">Recording video</option>
<option value="upload_video">Uploading a video</option>
<option value="record_audio">Recording audio</option>
<option value="upload_audio">Uploading audio</option>
<option value="upload_document">Uploading document</option>
<option value="find_location">Finding location</option>
</select>
<div style="max-width: 460px;font-size: 12px;color: #999999;line-height: 14px;margin-top:5px;">
For <b>Slack</b> the only available value is <code>typing</code>
</div>
</div>
</script>
<script type="text/x-red" data-help-name="chatbot-waiting">
<p>
Set the waiting status on the chat client (somehting like <em>your_bot is typing...</em>). Available for
<b>Telegram</b>, <b>Slack</b>.
</p>
<p>
Different type of wait are available: typing, recording a video, uploading a video etc.
</p>
</script>