feat: update config version to 5

This commit is contained in:
hirzidevs
2024-09-13 08:44:20 +07:00
parent f78a6b79f9
commit 02c8dc13db
2 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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();
}