diff --git a/index.js b/index.js index 4243552..270cc29 100644 --- a/index.js +++ b/index.js @@ -727,6 +727,13 @@ discord.on('ready', async () => { })(); start(); + setTimeout(() => { + // Wait 10 seconds, if startup is still true, something went wrong + if (startup) { + console.log(`${colors.red("[ERROR]")} Startup failed, exiting...`); + process.exit(1); + } + }, 10000) }); discord.on("interactionCreate", async (interaction) => {