mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 04:59:15 +00:00
...
This commit is contained in:
16
packages/io/keyword/addKeyword.js
Normal file
16
packages/io/keyword/addKeyword.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
*
|
||||
* @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'])
|
||||
Reference in New Issue
Block a user