fix scheduler exit suddenly (#368)

This commit is contained in:
hmcdat
2025-10-01 23:22:36 +07:00
committed by GitHub
parent 554227e200
commit 3e499be8a9

View File

@@ -1291,8 +1291,10 @@ async function main() {
} }
// Start the bots // Start the bots
main().catch(error => { if (require.main === module) {
log('main', 'MAIN-ERROR', `Error running bots: ${error}`, 'error') main().catch(error => {
// CommunityReporter disabled log('main', 'MAIN-ERROR', `Error running bots: ${error}`, 'error')
process.exit(1) // CommunityReporter disabled
}) process.exit(1)
})
}