publish eve_orehold_watcher.py
This commit is contained in:
parent
d354ae1565
commit
c769680457
1 changed files with 3 additions and 7 deletions
|
|
@ -56,13 +56,9 @@ CONFIG_PATH = os.path.join(HERE, "config.ini")
|
|||
|
||||
|
||||
def heartbeat(cp, source):
|
||||
"""Show 'watcher online' by EDITING one message per source (no spam on restart).
|
||||
Defined here so every watcher (all import this module) shares it."""
|
||||
try:
|
||||
host = socket.gethostname()
|
||||
except Exception:
|
||||
host = "PC"
|
||||
_discord_live(cp, f"hb_{source}", "🟢 Watcher online", f"`{source}` on **{host}**")
|
||||
"""No-op in Discord — 'watcher online' pings were non-information spam. Watchers
|
||||
being up is evident from the actual alerts/status. Kept as a local log line only."""
|
||||
print(f"[{source}] online")
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue