mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 04:29:16 +00:00
almost work it
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { toSerialize } = require('./methods')
|
||||
const { toSerialize } = require('./methods/toSerialize')
|
||||
|
||||
class FlowClass {
|
||||
allCallbacks = []
|
||||
@@ -20,16 +20,13 @@ class FlowClass {
|
||||
this.flowSerialize = toSerialize(mergeToJsonSerialize)
|
||||
}
|
||||
|
||||
find = (keyOrWord, symbol = false) => {
|
||||
find = (keyOrWord, symbol = false, overFlow = null) => {
|
||||
let capture = false
|
||||
let messages = []
|
||||
let refSymbol = null
|
||||
overFlow = overFlow ?? this.flowSerialize
|
||||
|
||||
const findIn = (
|
||||
keyOrWord,
|
||||
symbol = false,
|
||||
flow = this.flowSerialize
|
||||
) => {
|
||||
const findIn = (keyOrWord, symbol = false, flow = overFlow) => {
|
||||
capture = refSymbol?.options?.capture || false
|
||||
if (capture) return messages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user