serverwatcher 5.9.dev7__py3-none-any.whl → 5.9.dev9__py3-none-any.whl
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/watcher.py +16 -7
- {serverwatcher-5.9.dev7.dist-info → serverwatcher-5.9.dev9.dist-info}/METADATA +1 -1
- {serverwatcher-5.9.dev7.dist-info → serverwatcher-5.9.dev9.dist-info}/RECORD +6 -6
- {serverwatcher-5.9.dev7.dist-info → serverwatcher-5.9.dev9.dist-info}/WHEEL +0 -0
- {serverwatcher-5.9.dev7.dist-info → serverwatcher-5.9.dev9.dist-info}/licenses/LICENSE +0 -0
- {serverwatcher-5.9.dev7.dist-info → serverwatcher-5.9.dev9.dist-info}/top_level.txt +0 -0
serverwatcher/watcher.py
CHANGED
|
@@ -77,17 +77,26 @@ class ServerWatcher:
|
|
|
77
77
|
def _fmt(self, template: str, **ctx):
|
|
78
78
|
return mapit(template, **ctx)
|
|
79
79
|
|
|
80
|
-
def say(self, template, level="info", **ctx):
|
|
80
|
+
def say(self, template, level="info", only_maps=None, disable=None, enable=None, **ctx):
|
|
81
81
|
if not template:
|
|
82
82
|
return
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
|
|
84
|
+
msg = mapit(
|
|
85
|
+
template,
|
|
86
|
+
only_maps=only_maps,
|
|
87
|
+
disable=disable,
|
|
88
|
+
enable=enable,
|
|
88
89
|
**ctx
|
|
89
90
|
)
|
|
90
91
|
|
|
92
|
+
self.router.say(
|
|
93
|
+
msg,
|
|
94
|
+
level=level,
|
|
95
|
+
log=self.config.enable_logging,
|
|
96
|
+
**ctx
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
|
|
91
100
|
def shutdown(self):
|
|
92
101
|
self.say(self.messages.shutdown)
|
|
93
102
|
raise SystemExit
|
|
@@ -140,7 +149,7 @@ class ServerWatcher:
|
|
|
140
149
|
if k.startswith("second_")
|
|
141
150
|
}
|
|
142
151
|
|
|
143
|
-
runCountdownEvents(
|
|
152
|
+
utils.runCountdownEvents(
|
|
144
153
|
target_time=scheduled,
|
|
145
154
|
minute_callbacks=minute_callbacks,
|
|
146
155
|
second_callbacks=second_callbacks,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
serverwatcher/__init__.py,sha256=Q_afN0XU29n48d6Gf0-LT2lLo3RiTWlHRT6rC_fYbjw,486
|
|
2
2
|
serverwatcher/validator.py,sha256=idMwKv63hDS-xOe90h9TCUItdLuZpnEe0vG8Yl6mdeA,4644
|
|
3
|
-
serverwatcher/watcher.py,sha256=
|
|
3
|
+
serverwatcher/watcher.py,sha256=1ZJRzDY4uTDY6g-q6G38zvI5qKkK8q0MGDXGQaTqcZ0,8435
|
|
4
4
|
serverwatcher/configclasses/__init__.py,sha256=YS0KhxtAJGdMcaiFstqTRNxIPLnR7s9v3Tkt5h2uKE4,182
|
|
5
5
|
serverwatcher/configclasses/config.py,sha256=TJI3QBERGlOJZ_kxqRgxgKryOXNdMkuOIuaUusISkOs,820
|
|
6
6
|
serverwatcher/configclasses/messages.py,sha256=GN_TFLvESSW9ixfIC-FzNvwyQCPNJPJ2Wbw22xlkbS0,2184
|
|
@@ -8,8 +8,8 @@ serverwatcher/configclasses/watcher.py,sha256=iocNtCu8YifIxEkVfdYrkfj2tmd_F0Ukmk
|
|
|
8
8
|
serverwatcher/defaultconfigs/config.yaml,sha256=dd4us7FybIkx43h7RIWxCpMn-pQLMz0Gw1c8EA2yrCs,439
|
|
9
9
|
serverwatcher/defaultconfigs/messages.yaml,sha256=EFqAyyBKKVN6egtjir6Wl1YzTBVzVlbp_BwX_X-SawI,1490
|
|
10
10
|
serverwatcher/defaultconfigs/watcher.yaml,sha256=fsfU7G7yGhc4mzGOSQA1IEa5Ru6aouc9BZG2zTYWF7g,401
|
|
11
|
-
serverwatcher-5.9.
|
|
12
|
-
serverwatcher-5.9.
|
|
13
|
-
serverwatcher-5.9.
|
|
14
|
-
serverwatcher-5.9.
|
|
15
|
-
serverwatcher-5.9.
|
|
11
|
+
serverwatcher-5.9.dev9.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
12
|
+
serverwatcher-5.9.dev9.dist-info/METADATA,sha256=Lr8pPWCN97-xxfwEEJ-KLKI2ij0ZTDTSiRATOyBEoM0,1686
|
|
13
|
+
serverwatcher-5.9.dev9.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
14
|
+
serverwatcher-5.9.dev9.dist-info/top_level.txt,sha256=8DJAf8WmmglgtZHkp8aoTriRJ2YPcS4F3DfOIkytASo,14
|
|
15
|
+
serverwatcher-5.9.dev9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|