mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Make disconnect reason in example more apparent when logged out. (#1352)
* Add a warning to make people aware of what they should do about the 'Restart Required' message. * More descriptive message when session has been logged out of.
This commit is contained in:
@@ -75,7 +75,7 @@ const startSock = async() => {
|
|||||||
if((lastDisconnect.error as Boom)?.output?.statusCode !== DisconnectReason.loggedOut) {
|
if((lastDisconnect.error as Boom)?.output?.statusCode !== DisconnectReason.loggedOut) {
|
||||||
startSock()
|
startSock()
|
||||||
} else {
|
} else {
|
||||||
console.log('connection closed')
|
console.log('Connection closed. You are logged out.')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user