-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
85 lines (76 loc) · 3.78 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# PteroServerStats Configuration File
# Need help? Join our Discord server: https://discord.znproject.my.id
version: 1 # Warning: Do not change this unless you know what you are doing!
# App/Bot Presence Configuration
presence:
enable: true # Enable or disable app presence (true/false).
text: "Server" # The status text shown by the app.
type: "watching" # Available types: 'watching', 'playing', 'listening', 'competing'. (Note: 'streaming' is currently not supported)
status: "online" # Available types: 'online', 'idle', 'dnd', or 'invisible'
# Discord Channel and Refresh Timing Configuration
refresh: 10 # Interval in seconds for refreshing the server's stats.
timeout: 5 # Timeout in seconds for node responses. Adjusting this will affect the overall refresh time.
# Message and Embed Configuration
# To disable an option, leave the value as an empty string: ''
message:
content: "" # Custom content for app messages.
attachment: "" # Attachments will delay stats refresh since they are uploaded first.
embed:
author:
name: "" # Author name for the panel embed.
icon: "" # Icon URL for the author of the panel embed.
title: "Server Stats" # Title of the panel stats embed.
description: "Next update {{time}}" # Description for the panel. {{time}} will display the next refresh time.
timestamp: true # Show the timestamp in the embed (true/false).
color: "5865F2" # Embed color in hex format.
footer:
text: "PteroServerStats by @HirziDevs" # Footer text. Set to '' to disable.
icon: "" # Footer icon URL.
thumbnail: "" # Thumbnail URL for the embed.
image: "" # Image URL for the embed.
fields:
inline: false # Set the embed field to be inline or not (true/false).
# Message Button Configuration
button:
enable: false # Enable or disable buttons in messages (true/false).
row1:
- label: "Home" # Label for the first button.
url: "https://home.example.com" # URL for the first button.
# - label: "Dashboard" # Remove "#" at the start of the line to use this button
# url: "https://dash.example.com" # Remove "#" at the start of the line to use this button
# row2: # Remove "#" at the start of the line to use this row
# - label: "Backup Panel"
# url: "https://panel2.example.com"
# - label: "Backup Dashboard"
# url: "https://dash2.example.com"
# Status Message Configuration
# How to user Custom Emoji: https://github.com/HirziDevs/PteroServerStats/blob/main/guide/custom-emoji.md
status:
online: ":green_circle: Online" # Status message for when a server is online.
offline: ":red_circle: Offline" # Status message for when a server is offline.
# Server Settings
server:
details: true # Show server details such as memory and disk usage (true/false).
memory: true # Show server memory usage field (true/false).
disk: true # Show server disk usage field (true/false).
cpu: true # Show server cpu load field (true/false).
network: true # Show server network field (true/false)
uptime: true # Show server uptime field (true/false).
# Notifier Configuration
# How to use webhook: https://github.com/HirziDevs/PteroServerStats/blob/main/guide/notifier.md
notifier:
enable: false # Enable or disable notifier.
webhook: "" # Discord Webhook URL for the notifier.
embed:
author:
name: "" # Author name for the notifier embed.
icon: "" # Icon URL for the author of the notifier embed.
timestamp: true # Include a timestamp in the notifier embed (true/false).
footer:
text: "PteroServerStats Notifier" # Footer text for notifier stats.
icon: "" # Footer icon URL.
thumbnail: "" # Thumbnail URL for the notifier stats embed.
image: "" # Image URL for the notifier stats embed.
# Error Logging Configuration
# Enable error logging for debugging.
log_error: false # Set to true to enable error logging (true/false).