feat: add multi-chat routing and bill-specific dashboard countdown
Test blackout notifier / test (push) Failing after 4s
Hourly blackout check / check (push) Successful in 3s

This commit is contained in:
Meghdad
2026-07-22 02:14:45 +03:30
parent 6c3e146234
commit 42687ee651
12 changed files with 372 additions and 100 deletions
+3 -4
View File
@@ -12,8 +12,8 @@ from blackout_notifier.state import StateError, StateRepository
class ConsoleNotifier:
def send(self, text: str) -> None:
print("\n--- notification preview ---")
def send(self, chat_id: str, text: str) -> None:
print(f"\n--- notification preview for chat {chat_id} ---")
print(text)
@@ -41,12 +41,11 @@ def main(argv: list[str] | None = None) -> int:
if arguments.dry_run
else EitaaClient(
config.eitaayar_token,
config.chat_id,
timeout=config.request_timeout_seconds,
)
)
service = OutageService(
bill_ids=config.bill_ids,
bill_chat_ids=config.bill_chat_ids,
lookahead_days=config.lookahead_days,
saapa=SaapaClient(
config.bargheman_token,