Update index.ts
This commit is contained in:
parent
38975981aa
commit
c2fbeef6e5
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user