From 03727e3e4304b0bf2f9e5d09f9f78a328273c29b Mon Sep 17 00:00:00 2001 From: hirzidevs Date: Mon, 16 Sep 2024 20:56:09 +0700 Subject: [PATCH] fix: config error when starting setup --- handlers/setup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/setup.js b/handlers/setup.js index 37cbb13..b7275ff 100644 --- a/handlers/setup.js +++ b/handlers/setup.js @@ -2,7 +2,6 @@ const axios = require("axios") const cliColor = require("cli-color") const { Client, GatewayIntentBits } = require("discord.js") const fs = require("fs") -const application = require("./application.js"); const readline = require('readline').createInterface({ input: process.stdin, output: process.stdout @@ -87,7 +86,7 @@ module.exports = function Setup() { fs.writeFileSync("config.yml", fs.readFileSync("./config.yml", "utf8").replaceAll("Hosting Panel", answers[0]).replaceAll("https://panel.example.com", answers[1]), "utf-8") console.log(" \n" + cliColor.green(`Configuration saved in ${cliColor.blueBright(".env")} and ${cliColor.blueBright("config.yml")}.\n `)); - application() + require("./application.js")() }).catch(() => { console.log(cliColor.redBright("❌ Invalid Channel ID.")); console.log(" \n" + cliColor.redBright("Please run the setup again and fill in the correct credentials."));