mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 20:19:15 +00:00
improved many thing
This commit is contained in:
12
controllers/connection.js
Normal file
12
controllers/connection.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const connectionReady = (cb = () =>{}) => {
|
||||
console.log('Client is ready!');
|
||||
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