Skip to content

Instantly share code, notes, and snippets.

@Tarkiin
Last active July 17, 2024 08:04
Show Gist options
  • Save Tarkiin/76d35716d6a221291b905f98cabe47a4 to your computer and use it in GitHub Desktop.
Save Tarkiin/76d35716d6a221291b905f98cabe47a4 to your computer and use it in GitHub Desktop.
bee.js
const { bot } = require('../lib/');
bot({
pattern: 'bee',
fromMe: true,
desc: 'Respond with bee2',
type: 'whatsapp'
}, async (message, match) => {
try {
// Enviamos la respuesta
await message.send('bee2');
} catch (error) {
console.error('Error responding with bee2:', error);
await message.send('Oops! Something went wrong.');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment