Update index.ts

This commit is contained in:
Corey Johnson 2025-06-19 17:07:27 -07:00
parent 38975981aa
commit c2fbeef6e5

View File

@ -18,14 +18,14 @@ await client.login(process.env.DISCORD_TOKEN)
listenForEvents(client)
process.on("unhandledRejection", (error) => {
process.on("unhandledRejection", async (error) => {
console.error("💥 Unhandled promise rejection:", error)
logCrash(error)
await logCrash(error)
})
process.on("uncaughtException", (error) => {
process.on("uncaughtException", async (error) => {
console.error("💥 Uncaught exception:", error)
logCrash(error)
await logCrash(error)
})
runCronJobs(client)