fix regex issue for player join/leave events
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
Corban-Lee Jones 2024-12-09 01:40:29 +00:00
parent 945b7422e4
commit fec912c9e0

View File

@ -102,7 +102,7 @@ class PlayersCog(commands.Cog):
"""
await self.show_player_join_leave_alert(
line=line,
re_pattern=r'\[(?P<timestamp>.*?)\] (?P<steam_id>/*?) "(?P<username>.*?)" fully connected \((?P<coordinates>.*?)\)',
re_pattern=r'\[(?P<timestamp>.*?)\] (?P<steam_id>\d+) "(?P<username>.*?)" fully connected \((?P<coordinates>\d+,\d+,\d+)\)',
embed_title="Player Has Connected"
)
@ -111,7 +111,7 @@ class PlayersCog(commands.Cog):
"""
await self.show_player_join_leave_alert(
line=line,
re_pattern=r'\[(?P<timestamp>.*?)\] (?P<steam_id>/*?) "(?P<username>.*?)" disconnected player \((?P<coordinates>.*?)\)',
re_pattern=r'\[(?P<timestamp>.*?)\] (?P<steam_id>\d+) "(?P<username>.*?)" disconnected player \((?P<coordinates>\d+,\d+,\d+)\)',
embed_title="Player Has Disconnected"
)