Skip to content

0.12.0 / 2018-09-05

Choose a tag to compare

@chentsulin chentsulin released this 05 Sep 05:00
· 58 commits to master since this release
  • [new] add attachOptions:

attachOptions

Attaches additional options to the action.

const { attachOptions, sendText } = require('bottender-compose');

bot.onEvent(
  attachOptions({ tag: 'ISSUE_RESOLUTION' }, sendText('Issue Resolved'))
);

// curry function
const attachIssueResolutionTag = attachOptions({ tag: 'ISSUE_RESOLUTION' });

bot.onEvent(attachIssueResolutionTag(sendText('Issue Resolved')));