Last active
July 17, 2024 08:04
-
-
Save Tarkiin/76d35716d6a221291b905f98cabe47a4 to your computer and use it in GitHub Desktop.
bee.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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