serverwatcher 2.2.1__tar.gz → 2.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: serverwatcher
3
- Version: 2.2.1
3
+ Version: 2.2.3
4
4
  Summary: A HungerLib-powered Minecraft server automation engine.
5
5
  Author: iFamished
6
6
  License: MIT
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "serverwatcher"
10
- version = "2.2.1"
10
+ version = "2.2.3"
11
11
  description = "A HungerLib-powered Minecraft server automation engine."
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.10"
@@ -18,7 +18,8 @@ class WatcherMessages:
18
18
  })
19
19
 
20
20
  broadcast_second: dict = field(default_factory=lambda: {
21
- s: "{prefix} Restart in " + str(s) + " seconds!" for s in range(10, 0, -1)
21
+ s: "{prefix} Restart in " + str(s) + " seconds!"
22
+ for s in range(10, 0, -1)
22
23
  })
23
24
 
24
25
  # log messages
@@ -32,33 +33,7 @@ class WatcherMessages:
32
33
  log_gap_high: str = "Gap {gap}. Scheduling restart in 1 hour."
33
34
 
34
35
  # reason messages
35
- reason_restart_soonfrom dataclasses import dataclass, field
36
-
37
- @dataclass
38
- class WatcherMessages:
39
- prefix: str
40
-
41
- log_start: str = "Evaluating server health..."
42
- log_validation_fail: str = "Validation failed!"
43
- log_no_restart: str = "No restart needed."
44
- log_immediate_restart: str = "Restarting immediately..."
45
- log_scheduled: str = "Scheduling restart..."
46
- log_gap_low: str = "Gap is low ({gap}), using low-gap schedule."
47
- log_gap_high: str = "Gap is high ({gap}), using high-gap schedule."
48
-
49
- reason_restart_soon: str = "Restart soon schedule is active."
50
- reason_ram: str = "RAM {ram}GB >= threshold {threshold}GB"
51
- reason_cpu: str = "CPU {cpu}% >= threshold {threshold}%"
52
- reason_uptime: str = "Uptime {uptime} >= {threshold} hours"
53
- reason_tps: str = "TPS {tps} <= threshold {threshold}"
54
- reason_low_uptime: str = "Uptime too low ({uptime})"
55
- reason_players: str = "There {verb} {count} {plural} online."
56
-
57
- broadcast_restart_at: str = "<yellow>Server restart scheduled at {time}"
58
-
59
- broadcast_minute: dict = field(default_factory=dict)
60
- broadcast_second: dict = field(default_factory=dict)
61
- : str = "The server is set to restart soon"
36
+ reason_restart_soon: str = "The server is set to restart soon"
62
37
  reason_ram: str = "RAM usage ({ram}) is higher than {threshold} GB"
63
38
  reason_cpu: str = "CPU usage ({cpu}) is higher than {threshold}%"
64
39
  reason_uptime: str = "Uptime {uptime} exceeds {threshold}h"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: serverwatcher
3
- Version: 2.2.1
3
+ Version: 2.2.3
4
4
  Summary: A HungerLib-powered Minecraft server automation engine.
5
5
  Author: iFamished
6
6
  License: MIT
File without changes
File without changes
File without changes