Track rate limits, reset after 24 hours

This commit is contained in:
Zed
2023-08-20 11:56:42 +02:00
parent bbd68e6840
commit 3d8858f0d8
3 changed files with 33 additions and 7 deletions

View File

@@ -32,6 +32,8 @@ type
RateLimit* = object
remaining*: int
reset*: int
limited*: bool
limitedAt*: int
GuestAccount* = ref object
id*: string