working ws provider

This commit is contained in:
Leifer Mendez
2022-11-11 17:56:35 +01:00
parent da8defc517
commit 1edd9ab371
6 changed files with 21 additions and 7 deletions

View File

@@ -47,8 +47,9 @@ class BotClass {
* @param {*} ctxMessage
*/
handleMsg = ({ body, to, from }) => {
this.databaseClass.saveLog(body)
this.databaseClass.save(body)
const messageToSend = this.flowClass.find(body) || []
console.log(messageToSend)
if (Array.isArray(messageToSend)) this.sendFlow(messageToSend, from)
}