mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 12:39:24 +00:00
fix: fix del db provider mysql
Se pusieron correctamente los datos de mysql en app.js y packaje.json
This commit is contained in:
@@ -7,7 +7,7 @@ const {
|
||||
} = require('@bot-whatsapp/bot')
|
||||
|
||||
const WebWhatsappProvider = require('@bot-whatsapp/provider/web-whatsapp')
|
||||
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(WebWhatsappProvider)
|
||||
createBot({
|
||||
|
||||
Reference in New Issue
Block a user