mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-01-08 07:11:48 +00:00
feat: update config version to 5
This commit is contained in:
10
config.yml
10
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.
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user