This commit is contained in:
NotSoToothless
2026-05-27 04:29:57 -07:00
committed by GitHub
parent 8760c63759
commit 0c99a911e0
4 changed files with 174 additions and 7 deletions
+3
View File
@@ -16,6 +16,7 @@ import asyncio
import json
import logging
import os
import time
from dataclasses import dataclass
from pathlib import Path
from urllib.parse import quote
@@ -205,6 +206,7 @@ async def publish_replay_batch(replays: list[dict[str, Any]]) -> None:
"type": "spectra.replay_batch",
"version": 1,
"source": "srebot",
"sent_at": time.time(),
"payload": {"replays": replays},
}
await _append_external_envelope(envelope)
@@ -216,6 +218,7 @@ async def publish_event(event_type: str, payload: dict[str, Any]) -> None:
"type": event_type,
"version": 1,
"source": "srebot",
"sent_at": time.time(),
"payload": payload,
}
await _append_external_envelope(envelope)