diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..6df7b58 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,28 @@ +import { Client as DiscordClient, Collection, IntentsBitField } from "discord.js"; + + +process.on('SIGINT', () => { + process.exit(); +}); + +process.on('SIGTERM', () => { + process.exit(); +}); + +process.on('uncaughtException', (error) => { + console.error("Error"); + console.error(error.name); + console.error(error.message); + console.error(error.stack); +}); + +process.on('exit', () => { + +}); + +process.on('warning', (warning) => { + console.warn("Warning"); + console.warn(warning.name); + console.warn(warning.message); + console.warn(warning.stack); +});