From 02c8dc13db022a76ab7dafa187b5c9fccc3a2522 Mon Sep 17 00:00:00 2001 From: hirzidevs Date: Fri, 13 Sep 2024 08:44:20 +0700 Subject: [PATCH] feat: update config version to 5 --- config.yml | 10 +++++----- handlers/config.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.yml b/config.yml index ac6d947..6c29576 100644 --- a/config.yml +++ b/config.yml @@ -1,11 +1,11 @@ # PteroStats Configuration File # Need help? Join our Discord server: https://discord.gg/zv6maQRah3 -version: 5 # Warning: Do not change this unless you know what you are doing! +version: 6 # Warning: Do not change this unless you know what you are doing! -# Bot Presence Configuration +# App Presence Configuration presence: - enable: true - text: "Hosting Panel" # The status text shown by the bot. + enable: true # Enable or disable app presence. + text: "Hosting Panel" # The status text shown by the app. type: "watching" # Available types: 'watching', 'playing', 'listening', 'competing'. (Note: 'streaming' is currently unsupported) status: "online" # Available types: 'online', 'idle', 'dnd', or 'invisible' @@ -81,4 +81,4 @@ panel_settings: # Error Logging Configuration # Enable logging to console if servers go offline, useful for debugging. -log_error: false # Set to true to enable error logging. +log_error: false # Set to true to enable error logging. \ No newline at end of file diff --git a/handlers/config.js b/handlers/config.js index 452e8ee..cddef9c 100644 --- a/handlers/config.js +++ b/handlers/config.js @@ -18,7 +18,7 @@ try { process.exit(); } -if (config.version !== 5) { +if (config.version !== 6) { console.error('Config Error | Invalid config version! The config has been updated, please get the new config from https://github.com/HirziDevs/PteroStats/blob/dev/config.yml'); process.exit(); }