Add timestamps to game events and connection messages

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
Debian
2026-09-16 21:31:31 +02:00
co-authored by Sisyphus
parent b8864ca8dd
commit 190152733e
2 changed files with 15 additions and 6 deletions
+5 -1
View File
@@ -72,7 +72,11 @@ class EventParser:
handler = handler_map.get(event_type)
if handler:
return handler(data)
formatted = handler(data)
if formatted:
timestamp = time.strftime('%H:%M:%S')
return f"^3[^7{timestamp}^3]^7 {formatted}"
return None
else:
# Unknown event
logger.debug(f'Unknown event type: {event_type}')