
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
botkit-fb-quick-reply
Advanced tools
A botkit middleware to handle Facebook Messenger quick reply in an intuitive manner
A Botkit middleware to handle Facebook Messenger's quick reply in an intuitive manner
Using this Botkit middleware allows your controller to "listen" on Facebook Messenger quick reply payloads instead of the quick reply label/text. In addition, it also supports backwards compatibility to prevent breaking any existing code.
The message object is updated to the following:
message.payload = message.quick_reply.payload;
message.text = message.quick_reply.payload;
message.label = message.quick_reply.text;
message.type = eventName || 'facebook_quick_reply';
$ npm install --save botkit-fb-quick-reply
const quickReplyMiddleware = require('botkit-fb-quick-reply');
// Load middleware
quickReplyMiddleware(controller);
// Now controller can handle "facebook_quick_reply" events and set messages accordingly
// messages.label = quick reply text label
// message.payload = quick reply payload
// Listen to events by the payload
controller.hears('MY_QUICK_REPLY_PAYLOAD', 'facebook_quick_reply', doSomething);
// Listen to a payload that can be provided from a postback OR quick reply
controller.hears('MY_QUICK_REPLY_PAYLOAD', ['facebook_quick_reply', 'facebook_postback'], doSomethingElse);
Type: object
A botkit configured controller
Configure the middleware
Type: string
Default: facebook_quick_reply
Override the default quick reply event name. For example, you can use facebook_postback
if you feel have overlapping functionalities from the menu or quick replies.
Type: boolean
Default: false
This will trigger both a message_received
in the default behavior, and in the new facebook_quick_reply
event. Thus activate this if you want backwards compability, but want to use the newer means of handling quick reply events.
MIT © Mako AI
FAQs
A botkit middleware to handle Facebook Messenger quick reply in an intuitive manner
The npm package botkit-fb-quick-reply receives a total of 0 weekly downloads. As such, botkit-fb-quick-reply popularity was classified as not popular.
We found that botkit-fb-quick-reply demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.