diff --git a/config.py b/config.py index 4efc0dd..5394dba 100644 --- a/config.py +++ b/config.py @@ -42,7 +42,7 @@ servers: dict[str, dict[str, Any]] = { "ignores": ["#fp-radio"], "admins": ["h-tl"], "hosts": ["owner.firepi"], - "threads": ["radio"], + "threads": ["radio", "mc-down"], }, "backupbox": { "address": "127.0.0.1", diff --git a/timers.py b/timers.py index d88508d..fdb9462 100644 --- a/timers.py +++ b/timers.py @@ -112,7 +112,11 @@ def radio(instance: bare.bot) -> NoReturn: instance.log("Thread while loop broken", "FATAL") exit(1) +def mcDown(instance: bare.bot) -> None: + instance.sendraw("TOPIC #firemc :FireMC Relay channel (offline)") + data: dict[str, dict[str, Any]] = { "radio": {"noWrap": True, "func": radio, "args": []}, + "mc-down": {"noWrap": False, "func": mcDown, "args": [], "interval": 60} }