mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 03:59:17 +00:00
improved many thing
This commit is contained in:
26
controllers/flows.js
Normal file
26
controllers/flows.js
Normal file
@@ -0,0 +1,26 @@
|
||||
const getMessages = (step) => {
|
||||
switch (step) {
|
||||
case 'STEP_1':
|
||||
return ['hola', 'hi']
|
||||
break;
|
||||
case 'STEP_2':
|
||||
return ['hola', 'hi']
|
||||
break;
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
const responseMessages = (step) => {
|
||||
switch (step) {
|
||||
case 'STEP_1':
|
||||
return ['Si como estas', '🤔'].join('')
|
||||
break;
|
||||
case 'STEP_2':
|
||||
return ['pa como estas', '🤔'].join('')
|
||||
break;
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
module.exports = { getMessages, responseMessages }
|
||||
Reference in New Issue
Block a user