This commit is contained in:
Bingus_Violet 2023-11-29 22:07:10 -06:00
parent 6630971abd
commit 5caf86fd58

View file

@ -1,3 +1,5 @@
const fs = require('fs')
var updateTime = (process.env.UPDATE_TIME || 30)
const clientId = process.env.CLIENT_ID
@ -73,4 +75,12 @@ function update() {
client.on('ready', () => {
update()
});
});
process.on('uncaughtException', (err, origin) => {
fs.writeSync(
process.stderr.fd,
`Caught exception: ${err}\n` +
`Exception origin: ${origin}`,
)
})