serverwatcher 5.33b2__tar.gz → 5.33b4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {serverwatcher-5.33b2/src/serverwatcher.egg-info → serverwatcher-5.33b4}/PKG-INFO +1 -1
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/pyproject.toml +1 -1
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/configclasses/config.py +1 -1
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/configclasses/messages.py +1 -1
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/configclasses/watcher.py +1 -1
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/defaultconfigs/messages.yaml +21 -21
- {serverwatcher-5.33b2 → serverwatcher-5.33b4/src/serverwatcher.egg-info}/PKG-INFO +1 -1
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/LICENSE +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/README.md +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/setup.cfg +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/__init__.py +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/__main__.py +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/configclasses/__init__.py +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/defaultconfigs/config.yaml +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/defaultconfigs/watcher.yaml +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/validator.py +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/watcher.py +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher.egg-info/SOURCES.txt +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher.egg-info/dependency_links.txt +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher.egg-info/requires.txt +0 -0
- {serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from mapres import datamap, syntax
|
|
2
2
|
|
|
3
|
-
@datamap(syntax=syntax.
|
|
3
|
+
@datamap(syntax=syntax.double_braces, mode='config')
|
|
4
4
|
class MessagesConfig:
|
|
5
5
|
__user_config_path__ = 'config/messages.yaml'
|
|
6
6
|
__default_config_path__ = 'defaultconfigs/messages.yaml'
|
{serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher/defaultconfigs/messages.yaml
RENAMED
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
# <red> <green> <yellow> <reset>
|
|
10
10
|
#
|
|
11
11
|
# 2. GlobalConfig (config)
|
|
12
|
-
# Provides server-wide configuration values. Syntax: {field}
|
|
12
|
+
# Provides server-wide configuration values. Syntax: {{field}}
|
|
13
13
|
# Examples:
|
|
14
|
-
# {server_name}
|
|
15
|
-
# {panel_url}
|
|
14
|
+
# {{server_name}}
|
|
15
|
+
# {{panel_url}}
|
|
16
16
|
#
|
|
17
17
|
# 3. MessagesConfig (keys)
|
|
18
|
-
# Provides message templates. Syntax: {field}
|
|
18
|
+
# Provides message templates. Syntax: {{field}}
|
|
19
19
|
# Examples:
|
|
20
|
-
# {prefix}
|
|
21
|
-
# {broadcast_restart_at}
|
|
20
|
+
# {{prefix}}
|
|
21
|
+
# {{broadcast_restart_at}}
|
|
22
22
|
#
|
|
23
23
|
# 4. WatcherConfig (config)
|
|
24
|
-
# Provides thresholds, weights, and timing values. Syntax: {field}
|
|
24
|
+
# Provides thresholds, weights, and timing values. Syntax: {{field}}
|
|
25
25
|
# Examples:
|
|
26
|
-
# {threshold_ram}
|
|
27
|
-
# {low_gap_minutes}
|
|
26
|
+
# {{threshold_ram}}
|
|
27
|
+
# {{low_gap_minutes}}
|
|
28
28
|
#
|
|
29
29
|
# 5. TimeMap (dynamic)
|
|
30
30
|
# Provides live timestamps. Syntax: %field%
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
prefix: '<aqua>[Server Watcher]'
|
|
42
42
|
bullet: '-'
|
|
43
43
|
|
|
44
|
-
broadcast_restart_at: '{prefix} The server will restart at {time} CDT.'
|
|
44
|
+
broadcast_restart_at: '{{prefix}} The server will restart at {{time}} CDT.'
|
|
45
45
|
|
|
46
46
|
broadcast_templates:
|
|
47
|
-
minutes: '{prefix} Restart in {n} minute{s}!'
|
|
48
|
-
seconds: '{prefix} <red>Restarting in {n} second{s}!'
|
|
47
|
+
minutes: '{{prefix}} Restart in {{n}} minute{{s}}!'
|
|
48
|
+
seconds: '{{prefix}} <red>Restarting in {{n}} second{{s}}!'
|
|
49
49
|
|
|
50
50
|
broadcast_minutes: {}
|
|
51
51
|
broadcast_seconds: {}
|
|
@@ -55,25 +55,25 @@ logging:
|
|
|
55
55
|
status_check: 'Checking server status...'
|
|
56
56
|
validation_fail: 'Validation FAILED.'
|
|
57
57
|
validation_ok: 'All validation checks succeeded.'
|
|
58
|
-
sampling_start: 'Starting sampling process. This should take about {duration} seconds...'
|
|
58
|
+
sampling_start: 'Starting sampling process. This should take about {{duration}} seconds...'
|
|
59
59
|
shutdown: 'Shutting down ServerWatcher.'
|
|
60
60
|
immediate_restart: 'Restarting immediately.'
|
|
61
61
|
no_restart: 'The server does not need to restart.'
|
|
62
62
|
scheduled: 'Restart needed, but anti-restart factors outweigh it.'
|
|
63
|
-
gap_low: 'Gap {gap}. Scheduling restart in 2 hours.'
|
|
64
|
-
gap_high: 'Gap {gap}. Scheduling restart in 1 hour.'
|
|
63
|
+
gap_low: 'Gap {{gap}}. Scheduling restart in 2 hours.'
|
|
64
|
+
gap_high: 'Gap {{gap}}. Scheduling restart in 1 hour.'
|
|
65
65
|
|
|
66
66
|
reasons:
|
|
67
67
|
pro_splash: 'PRO-RESTART REASONS:'
|
|
68
68
|
anti_splash: 'ANTI-RESTART REASONS:'
|
|
69
69
|
|
|
70
70
|
restart_soon: 'The server is set to restart soon'
|
|
71
|
-
ram: 'RAM usage ({ram}) is higher than {threshold} GB'
|
|
72
|
-
cpu: 'CPU usage ({cpu}) is higher than {threshold}%'
|
|
73
|
-
uptime: 'Uptime {uptime} exceeds {threshold}h'
|
|
74
|
-
tps: 'TPS {tps} is lower than {threshold}'
|
|
75
|
-
low_uptime: 'Uptime {uptime} is shorter than 30m'
|
|
76
|
-
players: 'There {verb} {count} {plural} online' # produces: 'There are 2 players online' or 'There is 1 player online'
|
|
71
|
+
ram: 'RAM usage ({{ram}}) is higher than {{threshold}} GB'
|
|
72
|
+
cpu: 'CPU usage ({{cpu}}) is higher than {{threshold}}%'
|
|
73
|
+
uptime: 'Uptime {{uptime}} exceeds {{threshold}}h'
|
|
74
|
+
tps: 'TPS {{tps}} is lower than {{threshold}}'
|
|
75
|
+
low_uptime: 'Uptime {{uptime}} is shorter than 30m'
|
|
76
|
+
players: 'There {{verb}} {{count}} {{plural}} online' # produces: 'There are 2 players online' or 'There is 1 player online'
|
|
77
77
|
|
|
78
78
|
pro_restart_number: 'Pro-restart: '
|
|
79
79
|
anti_restart_number: 'Anti-restart:'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{serverwatcher-5.33b2 → serverwatcher-5.33b4}/src/serverwatcher.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|