mirror of
https://github.com/cheveguerra/botGuna.git
synced 2026-04-17 19:37:07 +00:00
Commit inicial
This commit is contained in:
14
controllers/connection.js
Normal file
14
controllers/connection.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const connectionReady = (cb = () =>{}) => {
|
||||
console.log('Listo para escuchar mensajes')
|
||||
console.log('El cliente esta listo!');
|
||||
console.log('🔴 Escribe: /hola');
|
||||
cb()
|
||||
}
|
||||
|
||||
const connectionLost = (cb = () =>{}) => {
|
||||
console.log('** Error de autentificacion vuelve a generar el QRCODE (Borrar el archivo session.json) **');
|
||||
cb()
|
||||
}
|
||||
|
||||
|
||||
module.exports = {connectionReady, connectionLost}
|
||||
Reference in New Issue
Block a user