forked from guidone/node-red-contrib-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchatbot-qr-code.html
47 lines (43 loc) · 1.34 KB
/
chatbot-qr-code.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
<script type="text/javascript">
RED.nodes.registerType('chatbot-qrcode', {
category: 'RedBot',
color: '#FFCC66',
defaults: {
message: {
value: ''
}
},
inputs: 1,
outputs: 1,
paletteLabel: 'QR Code',
icon: 'chatbot-qr-code.png',
label: function() {
return 'QR Code';
}
});
</script>
<script type="text/x-red" data-template-name="chatbot-qrcode">
<div class="form-row">
<label for="node-input-message"><i class="icon-envelope"></i> Message</label>
<textarea id="node-input-message" placeholder="Message" style="width:93%;height:200px;"></textarea>
<div style="max-width: 460px;font-size: 12px;color: #999999;line-height: 14px;clear:both;margin-top:5px;">
Text will be be encoded with a QR Code.
<br/>Supports handlebars-like variables for chat context like {{firstName}}, {{lastName}}, etc. and emoticons (:smile:, etc.)
</div>
</div>
</script>
<script type="text/x-red" data-help-name="chatbot-qrcode">
<p>
Encode a message into a QR code image (text or link)
</p>
<p>
This node is equivalent to an <code>Image node</code> and can be connected directly to and output node (like
<code>Telegram Output</code>).
</p>
<p>
Message box supports templating, it's possible to use chat context variables like
<pre>
This is an encoded message for {{name}}
</pre>
</p>
</script>