AHIT: Fix death link timestamps being incorrect (#5404)

This commit is contained in:
CookieCat
2025-10-22 23:30:46 -04:00
committed by GitHub
parent 3105320038
commit 4847be98d2

View File

@@ -1,4 +1,6 @@
import asyncio import asyncio
import time
import Utils import Utils
import websockets import websockets
import functools import functools
@@ -208,6 +210,9 @@ async def proxy(websocket, path: str = "/", ctx: AHITContext = None):
if not ctx.is_proxy_connected(): if not ctx.is_proxy_connected():
break break
if msg["cmd"] == "Bounce" and msg.get("tags") == ["DeathLink"] and "data" in msg:
msg["data"]["time"] = time.time()
await ctx.send_msgs([msg]) await ctx.send_msgs([msg])
except Exception as e: except Exception as e: