mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-29 14:11:02 +00:00
feat(bots/discord): improve logs
This commit is contained in:
@@ -18,7 +18,7 @@ on('disconnect', (reason, msg) => {
|
||||
|
||||
// TODO: move to config
|
||||
if (api.disconnectCount >= 3) {
|
||||
console.error(new Error('Disconnected from bot API too many times'))
|
||||
console.error('Disconnected from bot API too many times')
|
||||
// We don't want the process hanging
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user