mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
feat: rename .js files to .ts
This commit is contained in:
1 parent
40bf9d926b
commit
92b1992b1a
54 files changed
No files matched your search
@@ -0,0 +1,19 @@
|
||||
const { v4: uuidv4 } = require('uuid');
|
||||
|
||||
module.exports = {
|
||||
name: 'uncaughtException',
|
||||
isDebug: false,
|
||||
execute: async (error) => {
|
||||
const executionId = uuidv4();
|
||||
|
||||
const logger = require('../../services/logger').child({
|
||||
source: 'uncaughtException.js',
|
||||
module: 'event',
|
||||
name: 'uncaughtException',
|
||||
executionId: executionId
|
||||
});
|
||||
|
||||
logger.fatal(error, 'UNCAUGHT EXCEPTION ERROR:');
|
||||
return;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user