This commit is contained in:
Hirzi
2022-11-29 15:11:34 +00:00
parent f7ace80089
commit 991f42aec0
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ panel:
url: 'Put panel url here'
key: 'Put panel apikey here'
# Message Configuration
# Message and Embed Configuration
# leave '' if you want to disable option
message:
content: ''
@@ -55,13 +55,13 @@ button:
url: ''
# Status Message Configuration
# How to use custom emoji: htttps://github.com/HirziDevs/PteroStats#using-custom-emoji
# How to use custom emoji: https://github.com/HirziDevs/PteroStats#using-custom-emoji
status:
online: ':green_circle: Online'
offline: ':red_circle: Offline'
# Nodes Settings
# How to get nodes id: htttps://github.com/HirziDevs/PteroStats#blacklist-nodes
# How to get nodes id: https://github.com/HirziDevs/PteroStats#blacklist-nodes
nodes_settings:
blacklist: [] # You can add node id to remove the node from status embed (Example: "blacklist: [1]")
enable: false

View File

@@ -33,7 +33,7 @@ const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.config = yaml.load(fs.readFileSync('./config.yml', 'utf8'));
if (client.config.panel.adminkey || client.config.resource || client.config.message.image) {
console.log(chalk.cyan('[PteroStats] ') + chalk.red('You are using old config file, please update your config file at ') + chalk.green('https://github.com/HirziDevs/PteroStats/blob/main/config.yml '))
console.log(chalk.cyan('[PteroStats] ') + chalk.red('You are using old config file, please update your config file at ') + chalk.green('https://github.com/HirziDevs/PteroStats/blob/main/config.yml'))
process.exit()
}
if (client.config.token.startsWith('Put') || !client.config.token.length) {