Skip to content

Commit

Permalink
fix(websocket.py): import regex
Browse files Browse the repository at this point in the history
  • Loading branch information
zay committed Oct 2, 2023
1 parent bde9b2b commit 70d7ef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/websocket.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import websockets
import websockets.client
import ssl
Expand Down Expand Up @@ -111,7 +112,8 @@ def handle(self, m, initial_game_state):
"time": message["time"],
"puuid": player,
"self": message["puuid"] == self.Requests.puuid,
"group":re.sub("\[|\]","",self.colors.escape_ansi(chat_prefix)),
"group": re.sub("\[|\]","",self.colors.escape_ansi(
chat_prefix)),
"player": name,
"agent": self.colors.escape_ansi(agent),
"text": message['body']
Expand Down

0 comments on commit 70d7ef0

Please sign in to comment.