mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 03:29:15 +00:00
25 lines
506 B
JavaScript
25 lines
506 B
JavaScript
const { CoreClass } = require('@bot-whatsapp/bot')
|
|
/**
|
|
* Necesita extender de core.class
|
|
* handleMsg(messageInComming) // const { body, from } = messageInComming
|
|
*/
|
|
|
|
class MockContext extends CoreClass {
|
|
constructor(_database, _provider) {
|
|
super(null, _database, _provider)
|
|
}
|
|
|
|
init = () => {}
|
|
|
|
/**
|
|
* GLOSSARY.md
|
|
* @param {*} messageCtxInComming
|
|
* @returns
|
|
*/
|
|
handleMsg = async () => {
|
|
console.log('DEBUG:')
|
|
}
|
|
}
|
|
|
|
module.exports = MockContext
|