Files
bot-whatsapp/packages/io/keyword/addKeyword.js
Leifer 5974f3c9f2 ...
2022-10-29 12:15:05 +02:00

16 lines
427 B
JavaScript

/**
*
* @param {*} message `string | string[]`
* @param {*} options {sensitivy:boolean} defaulta false
*/
const addKeyword = (message, options) => {
if (typeof message === 'string') return 1
return 0
}
module.exports = { addKeyword }
// await inout.addKeyword('hola')
// .addAnswer('Bienvenido a tu tienda 🥲')
// .addAnswer('escribe *catalogo* o *ofertas*')
// await inout.addKeyword(['catalogo','ofertas'])