Add logging for turns

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-07-17 11:46:53 +03:00
parent 79ada2836e
commit a36c31bad6
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -823,6 +823,15 @@ class MessageParser:
return cls.type_nop(content)
@classmethod
def type_turn(cls, content: List[str]) -> Tuple[str]:
if len(content) > 2:
chatlog_entry(
f"Took turn {int(content[0]) / 1000} seconds", content[2], "TURN"
)
return cls.type_nop(content)
async def main() -> int:
"""Entry/main function"""