fix regex issue for player join/leave events
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
This commit is contained in:
parent
945b7422e4
commit
fec912c9e0
@ -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"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user