
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Fastest framework for develop Botmaker Bots, but with low changes can use with different chatbot hosts;
Fastest framework for develop Botmaker Bots, but with low changes can use with different chatbot hosts;
npm install -D boteco
const Boteco = require('Boteco').default;
// or in typescript or ES modules
import Boteco from 'Boteco';
const bot = new Boteco({
contextType: 'botmaker',
TOKEN: '<Bot maker Token>',
});
bot.hears('Oi', (ctx) => {
const hostNumber = ctx.me.telephoneNumber;
const clientNumber = ctx.from.user.telephoneNumber;
ctx.sendMessage('Hello from Boteco!', {
chatPlatform: 'whatsapp',
chatChannelNumber: hostNumber,
platformContactId: clientNumber,
});
});
bot.launch();
const Boteco = require('boteco').default;
const session = require('boteco').default;
const Composer = require('boteco').default;
const Wizard = require('boteco').default;
const Stage = require('boteco').default;
const bot = new Boteco({
contextType: 'botmaker',
TOKEN: '<Bot maker Token>',
});
bot.use(session());
const composerFN = new Composer();
composerFN.hears(/^(\w+)$/gm, async (ctx) => {
[ctx.session.firstName] = ctx.match;
await ctx.sendMessage(`Hello! ${ctx.session.firstName}`, {
chatPlatform: 'whatsapp',
chatChannelNumber: ctx.me.telephoneNumber,
platformContactId: ctx.from.user.telephoneNumber,
});
await ctx.sendMessage('Tel me your last name:', {
chatPlatform: 'whatsapp',
chatChannelNumber: ctx.me.telephoneNumber,
platformContactId: ctx.from.user.telephoneNumber,
});
ctx.wizard.next();
});
composerFN.use((ctx) => {
ctx.sendMessage("Sorry, i don't understand", {
chatPlatform: 'whatsapp',
chatChannelNumber: ctx.me.telephoneNumber,
platformContactId: ctx.from.user.telephoneNumber,
});
});
const composerLN = new Composer();
composerLN.hears(/^(\w+)$/gm, (ctx) => {
[ctx.session.lastName] = ctx.match;
ctx.sendMessage(`Yeah! You said: ${ctx.session.firstName} ${ctx.session.lastName}!`, {
chatPlatform: 'whatsapp',
chatChannelNumber: ctx.me.telephoneNumber,
platformContactId: ctx.from.user.telephoneNumber,
});
ctx.scene.leave();
});
const wizName = new Wizard(
'NAMEWIZARD',
(ctx) => {
ctx.sendMessage('Tel me your first name: ', {
chatPlatform: 'whatsapp',
chatChannelNumber: ctx.me.telephoneNumber,
platformContactId: ctx.from.user.telephoneNumber,
});
return ctx.wizard.next();
},
composerFN,
composerLN,
);
const stage = new Stage([wizName]);
bot.use(stage.middleware());
bot.hears('Hi', (ctx) => {
const hostNumber = ctx.me.telephoneNumber;
const clientNumber = ctx.from.user.telephoneNumber;
ctx.sendMessage('Hello from Boteco!', {
chatPlatform: 'whatsapp',
chatChannelNumber: hostNumber,
platformContactId: clientNumber,
});
ctx.scene.enter('NAMEWIZARD');
});
bot.launch();
FAQs
Fastest framework for develop Botmaker Bots, but with low changes can use with different chatbot hosts;
The npm package boteco receives a total of 19 weekly downloads. As such, boteco popularity was classified as not popular.
We found that boteco 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.