UNPKG

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

13 lines (10 loc) 395 B
const GlobalContextHelper = require('../lib/helpers/global-context-helper'); module.exports = function(RED) { const globalContextHelper = GlobalContextHelper(RED); function ChatBotExtend(config) { RED.nodes.createNode(this, config); globalContextHelper.init(this.context().global); this.codeJs = config.codeJs; } RED.nodes.registerType('chatbot-extend', ChatBotExtend); };