feat(bots/discord): improve logs

This commit is contained in:
PalmDevs
2024-03-29 19:50:22 +07:00
parent faf1e5fc78
commit 6abb740994
2 changed files with 5 additions and 2 deletions

View File

@@ -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)
}