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

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