node-red-contrib-chatbot
Version:
REDBot a Chat bot for a full featured chat bot for Telegram, Facebook Messenger and Slack. Almost no coding skills required
24 lines (21 loc) • 1.18 kB
HTML
<script type="text/javascript">
$.RedBot.registerType('chatbot-log', {
category: $.RedBot.config.name,
color: '#FFCC66',
defaults: {
},
inputs: 1,
outputs: 1,
icon: 'chatbot-log.png',
paletteLabel: 'Log',
label: function() {
return 'Log';
}
});
</script>
<script type="text/x-red" data-help-name="chatbot-log"><p>Log the message into plain text file with some relevant information like <em>chatId</em>, <em>timestamp</em>, <em>username</em>, etc</p>
<pre><code class="language-plain">196520947 [Guido Bellomo] > Thu Dec 01 2016 18:45:39 GMT+0100 - ping
196520947 [Guido Bellomo] < Thu Dec 01 2016 18:45:40 GMT+0100 - pong!
</code></pre>
<p><img src="https://s3.us-west-2.amazonaws.com/secure.notion-static.com/70b83085-7f9a-4ce2-8021-ad504377b8f6/example-log.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20230218%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230218T124909Z&X-Amz-Expires=3600&X-Amz-Signature=3323b562e691576c4b605ef3951b12712a6aa4dd75835237fcd37cae0337992c&X-Amz-SignedHeaders=host&x-id=GetObject" alt="Example log"></p>
</script>