Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bottender

Package Overview
Dependencies
Maintainers
6
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bottender - npm Package Versions

1
22

1.3.0-alpha.0

Diff

chentsulin
published 1.2.0 •

Changelog

Source

1.2.0 / 2020-01-22

  • [new] Added four NLU packages:

    • @bottender/dialogflow
    • @bottender/luis
    • @bottender/qna-maker
    • @bottender/rasa
  • [new] Added context.setIntent() for intent tracking purpose (#617):

context.intent; // null

context.setIntent('greeting');

context.intent; // 'greeting'
  • [new] Added context.setAsHandled() and context.setAsNotHandled() for tracking handling status (#624):
context.setAsHandled();

context.isHandled; // true

context.setAsNotHandled();

context.isHandled; // false
  • [new] Added getSessionStore helper function to get the session store that configured by bottender.config.js (#633):
const { getSessionStore } = require('bottender');

const sessionStore = getSessionStore();
  • [new] Added getClient helper function to access underlying messaging client configured by bottender.config.js (#634):
const { getClient } = require('bottender');

const messenger = getClient('messenger');

messenger.sendText(USER_ID, 'Hello!', { tag: 'CONFIRMED_EVENT_UPDATE' });

const line = getClient('line');

line.pushText(USER_ID, 'Hello!');

slack

  • [new] add includeBotMessages option for interacting with bot_message (#635):
// bottender.config.js

module.exports = {
  // ...
  slack: {
    enabled: true,
    path: '/webhooks/slack',
    accessToken: process.env.SLACK_ACCESS_TOKEN,
    verificationToken: process.env.SLACK_VERIFICATION_TOKEN,
    includeBotMessages: true, // add this line
  },
};

Then you can use context.event.isBotMessage to determine if the event is a bot message event:

module.exports = function App(context) {
  if (context.event.isBotMessage) {
    console.log(context.event.rawEvent.botId);
  }
};
chentsulin
published 1.2.0-alpha.8 •

chentsulin
published 1.2.0-alpha.7 •

chentsulin
published 1.2.0-alpha.6 •

chentsulin
published 1.2.0-alpha.5 •

chentsulin
published 1.2.0-alpha.4 •

chentsulin
published 1.1.3 •

Changelog

Source

1.1.3 / 2020-01-08

  • [fix] fix(Bot, LineConnector, MessengerConnector): when receiving multiple events, construct session with event instead of request #621
chentsulin
published 1.0.8 •

Changelog

Source

1.0.8 / 2020-01-08

  • [fix] fix(Bot, LineConnector, MessengerConnector): when receiving multiple events, construct session with event instead of request #621
chentsulin
published 1.2.0-alpha.3 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc