From 3d3604df052279e81e6d79d1b807dfc624a7fd64 Mon Sep 17 00:00:00 2001 From: hirzidevs Date: Fri, 13 Sep 2024 23:00:16 +0700 Subject: [PATCH] feat: update config version to 9 --- config.yml | 16 ++++++++-------- handlers/config.js | 2 +- setup.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config.yml b/config.yml index aa60597..98da611 100644 --- a/config.yml +++ b/config.yml @@ -1,6 +1,6 @@ # PteroStats Configuration File # Need help? Join our Discord server: https://discord.znproject.my.id -version: 8 # Warning: Do not change this unless you know what you are doing! +version: 9 # Warning: Do not change this unless you know what you are doing! # App Presence Configuration presence: @@ -22,7 +22,7 @@ message: embed: panel: author: - name: "Hosting Panel" + name: "Hosting Panel" # Author name for the panel embed. icon: "" # Icon URL for the author of the panel embed. title: "Panel Stats" # Title of the panel stats embed. description: "Next update {{time}}" # Description for the panel. {{time}} will display the next refresh time. @@ -36,17 +36,17 @@ embed: nodes: author: - name: "" + name: "" # Author name for the nodes embed. icon: "" # Icon URL for the author of the nodes embed. - title: "Nodes Stats" # Title for the node stats embed. - description: "" # Description for the node stats embed. Can be left empty. + title: "Nodes Stats" # Title for the nodes stats embed. + description: "" # Description for the nodes stats embed. Can be left empty. timestamp: true # Include a timestamp in the nodes embed (true/false). color: "5865F2" # Embed color in hex format. footer: - text: "By @HirziDevs" # Footer text for node stats. + text: "By @HirziDevs" # Footer text for nodes stats. icon: "" # Footer icon URL. - thumbnail: "" # Thumbnail URL for the node stats embed. - image: "" # Image URL for the node stats embed. + thumbnail: "" # Thumbnail URL for the nodes stats embed. + image: "" # Image URL for the nodes stats embed. # Message Button Configuration button: diff --git a/handlers/config.js b/handlers/config.js index b7a9de8..86322fc 100644 --- a/handlers/config.js +++ b/handlers/config.js @@ -18,7 +18,7 @@ try { process.exit(); } -if (config.version !== 8) { +if (config.version !== 9) { console.error('Config Error | Invalid config version! The config has been updated, please get the new config from https://github.com/HirziDevs/PteroStats/blob/main/config.yml'); process.exit(); } diff --git a/setup.js b/setup.js index cdda4ca..0de3947 100644 --- a/setup.js +++ b/setup.js @@ -33,7 +33,7 @@ console.log(cliColor.yellowBright( readline.question('> ', async (answer) => { readline.close(); - switch(answer) { + switch (answer) { case '2': require('./handlers/setup.js')(); break;