fix: fix del db provider mysql

Se pusieron correctamente los datos de mysql en app.js y packaje.json
This commit is contained in:
2022-12-17 07:40:27 -06:00
parent 0581d63942
commit b59d4fcdd7
8 changed files with 36 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ const {
} = require('@bot-whatsapp/bot')
const BaileysProvider = require('@bot-whatsapp/provider/baileys')
const MockAdapter = require('@bot-whatsapp/database/mock')
const MySQLAdapter = require('@bot-whatsapp/database/mysql')
/**
* Declarando flujo hijo
@@ -68,7 +68,12 @@ const flowPrincipal = addKeyword(['hola', 'ole', 'alo'])
)
const main = async () => {
const adapterDB = new MockAdapter()
const adapterDB = new MySQLAdapter({
host: MYSQL_DB_HOST,
user: MYSQL_DB_USER,
database: MYSQL_DB_NAME,
password: MYSQL_DB_PASSWORD,
})
const adapterFlow = createFlow([flowPrincipal])
const adapterProvider = createProvider(BaileysProvider)
createBot({