mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
const BotClass = require('./classes/bot.class')
|
|
|
|
/**
|
|
* Crear instancia de clase
|
|
* @param {*} args
|
|
* @returns
|
|
*/
|
|
const create = async ({ flow, database, provider }) => {
|
|
return Object.setPrototypeOf(
|
|
new BotClass(flow, database, provider),
|
|
provider
|
|
)
|
|
}
|
|
|
|
module.exports = { create }
|