fix death regex failing to parse timestamp
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s
This commit is contained in:
parent
ac5389953f
commit
2c30e719ce
@ -54,7 +54,7 @@ class PlayersCog(commands.Cog):
|
||||
|
||||
async def process_player_death(self, line: str):
|
||||
log.debug("processing player death")
|
||||
re_pattern = r"\[(?P<timestamp>[\d\-:\.]+)\] user (?P<username>.+?) died at \((?P<x>\d+),(?P<y>\d+),(?P<z>\d+)\) \((?P<cause>.+?)\)"
|
||||
re_pattern = r"\[(?P<timestamp>[\d\- :\.]+)\] user (?P<username>.+?) died at \((?P<x>\d+),(?P<y>\d+),(?P<z>\d+)\) \((?P<cause>.+?)\)"
|
||||
re_match = re.search(re_pattern, line)
|
||||
if not re_match:
|
||||
log.warning("failed to parse player death log: %s", line)
|
||||
|
Reference in New Issue
Block a user