Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ebony-framework
Advanced tools
An easy to use, module-based, multi-channel chatbot framework.
For now, there is no detailed documentation for Ebony Framework. You can easily create an ebony-based Facebook Messenger Bot with the Messenger Bot Template. If you have any questions and/or suggestions feel free to open an issue, or create a pull request.
You'll need to have NodeJS/NPM on your system, as well as Typescript installed either in your node_modules
folder or globally in your system.
$ npm i ebony-framework
(For now only a Messenger Platform adapter is available)
$ npm i ebony-messenger-adapter
import { Bot } from 'ebony-framework';
// Import the adapter (for example the Messenger Adapter) as well as the user model
import { MessengerAdapter, MessengerUser } from 'ebony-messenger-adapter';
// ... Here import the modules you'll use...
import botModule from './modules/botModule';
const adapters = [
// Here you initialize the adapters one by one.
// For example the Messenger Adapter:
new MessengerAdapter({
pageId: /* Your FB Page ID */,
pageToken: /* Your Page Token */ ,
appSecret: /* Your App Secret */,
webhookKey: /* Your Webhook Key */
});
];
export const bot = new Bot<MessengerUser>(adapters, {
mongodbUri: /* Your MongoDB Connection URI */
});
bot.addModule(botModule);
bot.start({
port: 3000 // You can substitute "3000" with the PORT of your choice.
});
For now, only a Messenger Platform adapter is publicly available. If you want to use the Ebony Framework for another channel, open an issue to discuss the development of a new adapter.
A module is a portable collection of actions, rules and middlewares that is imported into the chatbot on runtime.
See Modules.md for more information.
An action is a function that when triggered, sends a message to the user.
There are multiple types of rules inside a module. A rule could be context based (ContextRouter), postback based (PostbackRouter) or even a regex (TextMatcher). These rules, work similarly to routes in a web framework. They point to an action that is triggered when the rule is satisfied.
Middlewares run before (preMiddlewares) and after (postMiddlewares) an action is triggered.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A module-based NodeJS chatbot framework.
We found that ebony-framework 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.